Package org.languagetool.rules.ca
Class CatalanUnpairedBracketsRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.GenericUnpairedBracketsRule
org.languagetool.rules.ca.CatalanUnpairedBracketsRule
-
Nested Class Summary
Nested classes/interfaces inherited from class org.languagetool.rules.GenericUnpairedBracketsRule
GenericUnpairedBracketsRule.Symbol -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSuggestions(Supplier<String> text, int startPos, int endPos, GenericUnpairedBracketsRule.Symbol symbol, String otherSymbol) protected booleanisNoException(String tokenStr, AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, UnsyncStack<SymbolLocator> symbolStack) Generic method to specify an exception.Methods inherited from class org.languagetool.rules.GenericUnpairedBracketsRule
findCorrespondingSymbol, getDescription, getId, match, minToCheckParagraph, preventMatchMethods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Field Details
-
CA_START_SYMBOLS
-
CA_END_SYMBOLS
-
VALID_BEFORE_CLOSING_PARENTHESIS
-
NUMBER
-
-
Constructor Details
-
CatalanUnpairedBracketsRule
-
-
Method Details
-
isNoException
protected boolean isNoException(String tokenStr, AnalyzedTokenReadings[] tokens, int i, int j, boolean precSpace, boolean follSpace, UnsyncStack<SymbolLocator> symbolStack) Description copied from class:GenericUnpairedBracketsRuleGeneric method to specify an exception. For unspecified language, it simply returns true (which means no exception) unless there's a common smiley like :-) or ;-).- Overrides:
isNoExceptionin classGenericUnpairedBracketsRule- Parameters:
tokenStr- String tokentokens- Sentence tokensi- Current token indexprecSpace- is preceded with spacefollSpace- is followed with space
-
getSuggestions
protected List<String> getSuggestions(Supplier<String> text, int startPos, int endPos, GenericUnpairedBracketsRule.Symbol symbol, String otherSymbol) - Overrides:
getSuggestionsin classGenericUnpairedBracketsRule
-