Class EnglishForGermansFalseFriendRule

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

public class EnglishForGermansFalseFriendRule extends org.languagetool.rules.ngrams.ConfusionProbabilityRule
False friends for German native speaker who write English text, based on ngrams.
Since:
4.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static List<org.languagetool.rules.patterns.AbstractPatternRule>
     

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

    Modifier and Type
    Method
    Description
    protected @NotNull List<String>
     
     
    protected String
    getMessage(org.languagetool.rules.ConfusionString textString, org.languagetool.rules.ConfusionString suggestion)
     

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

    estimateContextForSureMatch, getDescription, 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

    • rules

      private static List<org.languagetool.rules.patterns.AbstractPatternRule> rules
  • Constructor Details

    • EnglishForGermansFalseFriendRule

      public EnglishForGermansFalseFriendRule(ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language motherTongue, org.languagetool.Language language)
  • Method Details

    • getId

      public String getId()
      Overrides:
      getId in class org.languagetool.rules.ngrams.ConfusionProbabilityRule
    • getFilenames

      @NotNull protected @NotNull List<String> getFilenames()
      Overrides:
      getFilenames in class org.languagetool.rules.ngrams.ConfusionProbabilityRule
    • getMessage

      protected String getMessage(org.languagetool.rules.ConfusionString textString, org.languagetool.rules.ConfusionString suggestion)
      Overrides:
      getMessage in class org.languagetool.rules.ngrams.ConfusionProbabilityRule