Class GermanWordRepeatRule


  • public class GermanWordRepeatRule
    extends org.languagetool.rules.WordRepeatRule
    Check if a word is repeated twice, taking into account an exception for German where e.g. "..., die die ..." is often okay.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<java.util.List<org.languagetool.rules.patterns.PatternToken>> ANTI_PATTERNS  
      private org.languagetool.Language GERMAN  
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      GermanWordRepeatRule​(java.util.ResourceBundle messages, org.languagetool.Language language)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()  
      java.lang.String getId()  
      boolean ignore​(org.languagetool.AnalyzedTokenReadings[] tokens, int position)  
      • Methods inherited from class org.languagetool.rules.WordRepeatRule

        createRuleMatch, estimateContextForSureMatch, getDescription, match
      • Methods inherited from class org.languagetool.rules.Rule

        addExamplePair, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, 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

      • GERMAN

        private final org.languagetool.Language GERMAN
      • ANTI_PATTERNS

        private static final java.util.List<java.util.List<org.languagetool.rules.patterns.PatternToken>> ANTI_PATTERNS
    • Constructor Detail

      • GermanWordRepeatRule

        public GermanWordRepeatRule​(java.util.ResourceBundle messages,
                                    org.languagetool.Language language)
    • Method Detail

      • getId

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

        public boolean ignore​(org.languagetool.AnalyzedTokenReadings[] tokens,
                              int position)
        Overrides:
        ignore in class org.languagetool.rules.WordRepeatRule
      • getAntiPatterns

        public java.util.List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()
        Overrides:
        getAntiPatterns in class org.languagetool.rules.Rule