Class GermanWordRepeatRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.WordRepeatRule
org.languagetool.rules.de.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.
Author:
Daniel Naber
  • Field Summary

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule>
     
     
    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 Object

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

    • GermanWordRepeatRule

      public GermanWordRepeatRule(ResourceBundle messages, org.languagetool.Language language)
  • Method Details

    • getId

      public 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 List<org.languagetool.tagging.disambiguation.rules.DisambiguationPatternRule> getAntiPatterns()
      Overrides:
      getAntiPatterns in class org.languagetool.rules.Rule