Package org.languagetool.rules.ru
Class RussianWordRootRepeatRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractWordCoherencyRule
org.languagetool.rules.ru.RussianWordRootRepeatRule
WordRootRepeatRule.
This rule detects words in the same sentence with the same root that belong to different parts of speech.
- Since:
- 5.1
- Author:
- Yakov Reztsov
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()protected StringgetMessage(String word1, String word2) Methods inherited from class org.languagetool.rules.AbstractWordCoherencyRule
createReplacement, getShortMessage, match, minToCheckParagraphMethods 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, isIncludedInErrorsCorrectedAllAtOnce, 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, useDictionaryBasedFilterForMatches, useInOffice
-
Constructor Details
-
RussianWordRootRepeatRule
- Throws:
IOException
-
-
Method Details
-
getWordMap
- Specified by:
getWordMapin classAbstractWordCoherencyRule
-
getMessage
- Specified by:
getMessagein classAbstractWordCoherencyRule
-
getId
-
getDescription
- Specified by:
getDescriptionin classRule
-