Class 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 java.util.Set<java.lang.String> fillerWords  
      • 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​(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.String getId()  
      boolean isException​(org.languagetool.AnalyzedTokenReadings[] tokens, int num)  
      protected boolean isFillerWord​(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
      • Methods inherited from class java.lang.Object

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

      • fillerWords

        private static final java.util.Set<java.lang.String> fillerWords
    • Constructor Detail

      • GermanFillerWordsRule

        public GermanFillerWordsRule​(java.util.ResourceBundle messages,
                                     org.languagetool.Language lang,
                                     org.languagetool.UserConfig userConfig)
    • Method Detail

      • getId

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

        protected boolean isFillerWord​(java.lang.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