Class WordCoherencyRule


public class WordCoherencyRule extends AbstractWordCoherencyRule
Dutch version of AbstractWordCoherencyRule.
  • Field Details

  • Constructor Details

  • Method Details

    • getWordMap

      protected Map<String,Set<String>> getWordMap()
      Description copied from class: AbstractWordCoherencyRule
      Maps words in both directions, e.g. "aufwendig -> aufwändig" and "aufwändig -> aufwendig".
      Specified by:
      getWordMap in class AbstractWordCoherencyRule
    • getMessage

      protected String getMessage(String word1, String word2)
      Description copied from class: AbstractWordCoherencyRule
      Get the message shown to the user if the rule matches.
      Specified by:
      getMessage in class AbstractWordCoherencyRule
    • 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.
      Specified by:
      getId in class Rule
    • 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.
      Specified by:
      getDescription in class Rule