Class WordCoherencyRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.AbstractWordCoherencyRule
org.languagetool.rules.de.WordCoherencyRule

public class WordCoherencyRule extends org.languagetool.rules.AbstractWordCoherencyRule
German version of AbstractWordCoherencyRule.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Map<String,Set<String>>
     

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    protected String
    getMessage(String word1, String word2)
     
    protected Map<String,Set<String>>
     

    Methods inherited from class org.languagetool.rules.AbstractWordCoherencyRule

    match, minToCheckParagraph

    Methods inherited from class org.languagetool.rules.TextLevelRule

    estimateContextForSureMatch, match, match

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, getAntiPatterns, 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 Details

  • Constructor Details

  • Method Details

    • getWordMap

      protected Map<String,Set<String>> getWordMap()
      Specified by:
      getWordMap in class org.languagetool.rules.AbstractWordCoherencyRule
    • getMessage

      protected String getMessage(String word1, String word2)
      Specified by:
      getMessage in class org.languagetool.rules.AbstractWordCoherencyRule
    • getId

      public String getId()
      Specified by:
      getId in class org.languagetool.rules.Rule
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.languagetool.rules.Rule