Package org.languagetool.rules.de
Class StyleTooOftenUsedAdjectiveRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractStyleTooOftenUsedWordRule
org.languagetool.rules.de.StyleTooOftenUsedAdjectiveRule
A rule that gives Hints about too often used Adjectives
- Since:
- 6.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStyleTooOftenUsedAdjectiveRule(ResourceBundle messages, Language lang, UserConfig userConfig) -
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 StringgetLimitMessage(int limit) Defines the message for hints which exceed the limitprotected booleanisException(AnalyzedTokenReadings[] tokens, int n) An exception is defined for the tokenprotected booleanA token that has to be countedprotected StringGives back the lemma that should be added to the word mapMethods inherited from class org.languagetool.rules.AbstractStyleTooOftenUsedWordRule
getLemmaForPosTagStartsWith, getRuleOptions, getWordMap, match, minToCheckParagraph, setWithoutDirectSpeechMethods 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, 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
-
DEFAULT_MIN_PERCENT
private static final int DEFAULT_MIN_PERCENT- See Also:
-
-
Constructor Details
-
StyleTooOftenUsedAdjectiveRule
public StyleTooOftenUsedAdjectiveRule(ResourceBundle messages, Language lang, UserConfig userConfig)
-
-
Method Details
-
getLimitMessage
Description copied from class:AbstractStyleTooOftenUsedWordRuleDefines the message for hints which exceed the limit- Specified by:
getLimitMessagein classAbstractStyleTooOftenUsedWordRule
-
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
-
getConfigureText
- Specified by:
getConfigureTextin classAbstractStyleTooOftenUsedWordRule
-
isToCountedWord
Description copied from class:AbstractStyleTooOftenUsedWordRuleA token that has to be counted- Specified by:
isToCountedWordin classAbstractStyleTooOftenUsedWordRule
-
isException
Description copied from class:AbstractStyleTooOftenUsedWordRuleAn exception is defined for the token- Specified by:
isExceptionin classAbstractStyleTooOftenUsedWordRule
-
toAddedLemma
Description copied from class:AbstractStyleTooOftenUsedWordRuleGives back the lemma that should be added to the word map- Specified by:
toAddedLemmain classAbstractStyleTooOftenUsedWordRule
-