Package org.languagetool.rules.de
Class GermanWordRepeatRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.WordRepeatRule
-
- org.languagetool.rules.de.GermanWordRepeatRule
-
public class GermanWordRepeatRule extends org.languagetool.rules.WordRepeatRule
Check if a word is repeated twice, taking into account an exception for German where e.g. "..., die die ..." is often okay.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.util.List<org.languagetool.rules.patterns.PatternToken>>
ANTI_PATTERNS
private org.languagetool.Language
GERMAN
-
Constructor Summary
Constructors Constructor Description GermanWordRepeatRule(java.util.ResourceBundle messages, org.languagetool.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule>
getAntiPatterns()
java.lang.String
getId()
boolean
ignore(org.languagetool.AnalyzedTokenReadings[] tokens, int position)
-
Methods inherited from class org.languagetool.rules.WordRepeatRule
createRuleMatch, estimateContextForSureMatch, getDescription, match
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, 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
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Overrides:
getId
in classorg.languagetool.rules.WordRepeatRule
-
ignore
public boolean ignore(org.languagetool.AnalyzedTokenReadings[] tokens, int position)
- Overrides:
ignore
in classorg.languagetool.rules.WordRepeatRule
-
getAntiPatterns
public java.util.List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()
- Overrides:
getAntiPatterns
in classorg.languagetool.rules.Rule
-
-