Package org.languagetool.rules.es
Class SpanishUnpairedBracketsRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.GenericUnpairedBracketsRule
org.languagetool.rules.es.SpanishUnpairedBracketsRule
-
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 TypeMethodDescriptiongetId()A string used to identify the rule in e.g.getSuggestions(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.private booleanMethods inherited from class org.languagetool.rules.GenericUnpairedBracketsRule
findCorrespondingSymbol, getDescription, 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
-
ES_START_SYMBOLS
-
ES_END_SYMBOLS
-
VALID_BEFORE_CLOSING_PARENTHESIS
-
NUMBER
-
-
Constructor Details
-
SpanishUnpairedBracketsRule
-
-
Method Details
-
getId
Description copied from class:RuleA string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the charactersA-Zand the underscore.- Overrides:
getIdin classGenericUnpairedBracketsRule
-
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
-
isQuote
-
getSuggestions
protected List<String> getSuggestions(Supplier<String> text, int startPos, int endPos, GenericUnpairedBracketsRule.Symbol symbol, String otherSymbol) - Overrides:
getSuggestionsin classGenericUnpairedBracketsRule
-