Package org.languagetool.rules.it
Class ItalianWordRepeatRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.WordRepeatRule
-
- org.languagetool.rules.it.ItalianWordRepeatRule
-
public class ItalianWordRepeatRule extends org.languagetool.rules.WordRepeatRule
Avoid false alarms in the word repetition rule.
-
-
Constructor Summary
Constructors Constructor Description ItalianWordRepeatRule(java.util.ResourceBundle messages, org.languagetool.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
boolean
ignore(org.languagetool.AnalyzedTokenReadings[] tokens, int position)
private boolean
wordRepetitionOf(java.lang.String word, 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, 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
-
-
-
-
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
-
wordRepetitionOf
private boolean wordRepetitionOf(java.lang.String word, org.languagetool.AnalyzedTokenReadings[] tokens, int position)
-
-