Class RussianDashRule


public class RussianDashRule extends AbstractDashRule
Check for compounds written with dashes instead of hyphens.
Since:
4.2
  • Field Details

    • PATTERN

      private static final Pattern PATTERN
    • trie

      private static volatile com.hankcs.algorithm.AhoCorasickDoubleArrayTrie<String> trie
  • 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 AbstractDashRule
    • 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 AbstractDashRule
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in class AbstractDashRule
    • isBoundary

      protected boolean isBoundary(String s)
      Overrides:
      isBoundary in class AbstractDashRule
    • getCompoundsData

      protected com.hankcs.algorithm.AhoCorasickDoubleArrayTrie<String> getCompoundsData()
      Specified by:
      getCompoundsData in class AbstractDashRule