Package org.languagetool.rules.es
Class SpanishRepeatedWordsRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractRepeatedWordsRule
org.languagetool.rules.es.SpanishRepeatedWordsRule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final List<List<PatternToken>> private final Supplier<List<DisambiguationPatternRule>> private static final Map<String, SynonymsData> Fields inherited from class org.languagetool.rules.AbstractRepeatedWordsRule
language -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringadjustPostag(String postag) Overwrite this to avoid false alarms by ignoring these patterns - note that yourRule.match(AnalyzedSentence)method needs to callRule.getSentenceWithImmunization(org.languagetool.AnalyzedSentence)for this to be used and you need to checkAnalyzedTokenReadings.isImmunized()A short description of the error this rule can detect, usually in the language of the text that is checked.protected Stringprotected Stringprotected Synthesizerprotected Map<String, SynonymsData> protected booleanisException(AnalyzedTokenReadings[] tokens, int i, boolean sentStart, boolean isCapitalized, boolean isAllUppercase) Methods inherited from class org.languagetool.rules.AbstractRepeatedWordsRule
getId, loadWords, match, maxWordsDistance, minToCheckParagraphMethods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, 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
-
antiPatterns
-
ANTI_PATTERNS
-
wordsToCheck
-
-
Constructor Details
-
SpanishRepeatedWordsRule
-
-
Method Details
-
getAntiPatterns
Description copied from class:RuleOverwrite this to avoid false alarms by ignoring these patterns - note that yourRule.match(AnalyzedSentence)method needs to callRule.getSentenceWithImmunization(org.languagetool.AnalyzedSentence)for this to be used and you need to checkAnalyzedTokenReadings.isImmunized()- Overrides:
getAntiPatternsin classRule
-
getMessage
- Specified by:
getMessagein classAbstractRepeatedWordsRule
-
getDescription
Description copied from class:RuleA short description of the error this rule can detect, usually in the language of the text that is checked.- Specified by:
getDescriptionin classAbstractRepeatedWordsRule
-
getWordsToCheck
- Specified by:
getWordsToCheckin classAbstractRepeatedWordsRule
-
getShortMessage
- Specified by:
getShortMessagein classAbstractRepeatedWordsRule
-
getSynthesizer
- Specified by:
getSynthesizerin classAbstractRepeatedWordsRule
-
adjustPostag
- Overrides:
adjustPostagin classAbstractRepeatedWordsRule
-
isException
protected boolean isException(AnalyzedTokenReadings[] tokens, int i, boolean sentStart, boolean isCapitalized, boolean isAllUppercase) - Specified by:
isExceptionin classAbstractRepeatedWordsRule
-