Class EnglishConfusionProbabilityRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.ngrams.ConfusionProbabilityRule
org.languagetool.rules.en.EnglishConfusionProbabilityRule

public class EnglishConfusionProbabilityRule extends org.languagetool.rules.ngrams.ConfusionProbabilityRule
Since:
2.7
  • Field Summary

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

    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
    EnglishConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language)
     
    EnglishConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language, int grams)
     
  • Method Summary

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

    estimateContextForSureMatch, getDescription, getFilenames, getId, getMessage, getNGrams, isException, 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

    • EXCEPTIONS

      private static final List<String> EXCEPTIONS
  • Constructor Details

    • EnglishConfusionProbabilityRule

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

      public EnglishConfusionProbabilityRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language language, int grams)