Class GermanConfusionProbabilityRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.ngrams.ConfusionProbabilityRule
org.languagetool.rules.de.GermanConfusionProbabilityRule

public class GermanConfusionProbabilityRule extends org.languagetool.rules.ngrams.ConfusionProbabilityRule
Since:
3.1
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final List<String>
     
    private static final List<Pattern>
     

    Fields inherited from class org.languagetool.rules.ngrams.ConfusionProbabilityRule

    MIN_COVERAGE, RULE_ID

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    GermanConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language)
     
    GermanConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language, int grams)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    isException(String sentenceText)
     

    Methods inherited from class org.languagetool.rules.ngrams.ConfusionProbabilityRule

    estimateContextForSureMatch, getDescription, getFilenames, getId, getMessage, getNGrams, match, setConfusionPair

    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

    • SENTENCE_EXCEPTION_PATTERNS

      private static final List<Pattern> SENTENCE_EXCEPTION_PATTERNS
    • EXCEPTIONS

      private static final List<String> EXCEPTIONS
  • Constructor Details

    • GermanConfusionProbabilityRule

      public GermanConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language)
    • GermanConfusionProbabilityRule

      public GermanConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language, int grams)
  • Method Details

    • isException

      protected boolean isException(String sentenceText)
      Overrides:
      isException in class org.languagetool.rules.ngrams.ConfusionProbabilityRule