Class EnglishUnpairedBracketsRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.GenericUnpairedBracketsRule
org.languagetool.rules.en.EnglishUnpairedBracketsRule

public class EnglishUnpairedBracketsRule extends org.languagetool.rules.GenericUnpairedBracketsRule
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Pattern
     
    private static final List<String>
     
    private static final List<String>
     
    private static final Pattern
     
    private static final Pattern
     

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnglishUnpairedBracketsRule(ResourceBundle messages, org.languagetool.Language language)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
    isNoException(String tokenStr, org.languagetool.AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, org.languagetool.rules.UnsyncStack<org.languagetool.rules.SymbolLocator> symbolStack)
     

    Methods inherited from class org.languagetool.rules.GenericUnpairedBracketsRule

    getDescription, match, minToCheckParagraph

    Methods inherited from class org.languagetool.rules.TextLevelRule

    estimateContextForSureMatch, match, match

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EN_START_SYMBOLS

      private static final List<String> EN_START_SYMBOLS
    • EN_END_SYMBOLS

      private static final List<String> EN_END_SYMBOLS
    • NUMBER

      private static final Pattern NUMBER
    • YEAR_NUMBER

      private static final Pattern YEAR_NUMBER
    • ALPHA

      private static final Pattern ALPHA
  • Constructor Details

    • EnglishUnpairedBracketsRule

      public EnglishUnpairedBracketsRule(ResourceBundle messages, org.languagetool.Language language)
  • Method Details

    • getId

      public String getId()
      Overrides:
      getId in class org.languagetool.rules.GenericUnpairedBracketsRule
    • isNoException

      protected boolean isNoException(String tokenStr, org.languagetool.AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, org.languagetool.rules.UnsyncStack<org.languagetool.rules.SymbolLocator> symbolStack)
      Overrides:
      isNoException in class org.languagetool.rules.GenericUnpairedBracketsRule