Class 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 java.util.List<org.languagetool.rules.patterns.AbstractPatternRule> rules  
      • 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​(java.util.ResourceBundle messages, org.languagetool.languagemodel.LanguageModel languageModel, org.languagetool.Language motherTongue, org.languagetool.Language language)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected @NotNull java.util.List<java.lang.String> getFilenames()  
      java.lang.String getId()  
      protected java.lang.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 Detail

      • rules

        private static java.util.List<org.languagetool.rules.patterns.AbstractPatternRule> rules
    • Constructor Detail

      • EnglishForGermansFalseFriendRule

        public EnglishForGermansFalseFriendRule​(java.util.ResourceBundle messages,
                                                org.languagetool.languagemodel.LanguageModel languageModel,
                                                org.languagetool.Language motherTongue,
                                                org.languagetool.Language language)
    • Method Detail

      • getId

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

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

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