Package org.languagetool.rules.en
Class WordCoherencyRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractWordCoherencyRule
org.languagetool.rules.en.WordCoherencyRule
English version of
AbstractWordCoherencyRule-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA short description of the error this rule can detect, usually in the language of the text that is checked.getId()A string used to identify the rule in e.g.protected StringgetMessage(String word1, String word2) Get the message shown to the user if the rule matches.Maps words in both directions, e.g.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, 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
-
wordMap
-
-
Constructor Details
-
WordCoherencyRule
- Throws:
IOException
-
-
Method Details
-
getWordMap
Description copied from class:AbstractWordCoherencyRuleMaps words in both directions, e.g. "aufwendig -> aufwändig" and "aufwändig -> aufwendig".- Specified by:
getWordMapin classAbstractWordCoherencyRule
-
getMessage
Description copied from class:AbstractWordCoherencyRuleGet the message shown to the user if the rule matches.- Specified by:
getMessagein classAbstractWordCoherencyRule
-
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. -
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 classRule
-