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.AbstractFillerWordsRule
A 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 final Set<String>
     

    Fields inherited from class org.languagetool.rules.AbstractFillerWordsRule

    RULE_ID

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    GermanFillerWordsRule(ResourceBundle messages, org.languagetool.Language lang, org.languagetool.UserConfig userConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    isException(org.languagetool.AnalyzedTokenReadings[] tokens, int num)
     
    protected boolean
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • fillerWords

      private static final Set<String> fillerWords
  • Constructor Details

    • GermanFillerWordsRule

      public GermanFillerWordsRule(ResourceBundle messages, org.languagetool.Language lang, org.languagetool.UserConfig userConfig)
  • Method Details

    • getId

      public String getId()
      Overrides:
      getId in class org.languagetool.rules.AbstractFillerWordsRule
    • isFillerWord

      protected boolean isFillerWord(String token)
      Specified by:
      isFillerWord in class org.languagetool.rules.AbstractFillerWordsRule
    • isException

      public boolean isException(org.languagetool.AnalyzedTokenReadings[] tokens, int num)
      Overrides:
      isException in class org.languagetool.rules.AbstractFillerWordsRule