Package org.languagetool.rules.de
Class GermanFillerWordsRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.TextLevelRule
-
- org.languagetool.rules.AbstractFillerWordsRule
-
- org.languagetool.rules.de.GermanFillerWordsRule
-
public class GermanFillerWordsRule extends org.languagetool.rules.AbstractFillerWordsRuleA rule that gives Hints about the use of German filler words. The Hints are only given when the percentage of filler words per paragraph exceeds the given limit. A limit of 0 shows all used filler words. Direct speech or citation is excluded otherwise. This rule detects no grammar error but gives stylistic hints (default off).- Since:
- 4.2
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>fillerWords
-
Constructor Summary
Constructors Constructor Description GermanFillerWordsRule(java.util.ResourceBundle messages, org.languagetool.Language lang, org.languagetool.UserConfig userConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()booleanisException(org.languagetool.AnalyzedTokenReadings[] tokens, int num)protected booleanisFillerWord(java.lang.String token)-
Methods inherited from class org.languagetool.rules.AbstractFillerWordsRule
getConfigureText, getDefaultValue, getDescription, getMaxConfigurableValue, getMessage, getMinConfigurableValue, hasConfigurableValue, match, minToCheckParagraph
-
Methods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, match
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, getAntiPatterns, getCategory, getCorrectExamples, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getSentenceWithImmunization, getUrl, 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:
getIdin classorg.languagetool.rules.AbstractFillerWordsRule
-
isFillerWord
protected boolean isFillerWord(java.lang.String token)
- Specified by:
isFillerWordin classorg.languagetool.rules.AbstractFillerWordsRule
-
isException
public boolean isException(org.languagetool.AnalyzedTokenReadings[] tokens, int num)- Overrides:
isExceptionin classorg.languagetool.rules.AbstractFillerWordsRule
-
-