Class ConfusionProbabilityRule.SpecificIdRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.ngrams.ConfusionProbabilityRule
org.languagetool.rules.ngrams.ConfusionProbabilityRule.SpecificIdRule
Enclosing class:
ConfusionProbabilityRule

static class ConfusionProbabilityRule.SpecificIdRule extends ConfusionProbabilityRule
  • Field Details

    • id

      private final String id
    • desc

      private final String desc
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Description copied from class: Rule
      A string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the characters A-Z and the underscore.
      Overrides:
      getId in class ConfusionProbabilityRule
    • getDescription

      public String getDescription()
      Description copied from class: Rule
      A short description of the error this rule can detect, usually in the language of the text that is checked.
      Overrides:
      getDescription in class ConfusionProbabilityRule