Class PersianWordRepeatBeginningRule


public class PersianWordRepeatBeginningRule extends WordRepeatBeginningRule
List of Persian adverbs for WordRepeatBeginningRule
Since:
2.7
  • Field Details

    • ADVERBS

      private static final Set<String> ADVERBS
  • Constructor Details

    • PersianWordRepeatBeginningRule

      public PersianWordRepeatBeginningRule(ResourceBundle messages, Language language)
  • 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 WordRepeatBeginningRule
    • isAdverb

      protected boolean isAdverb(AnalyzedTokenReadings token)
      Overrides:
      isAdverb in class WordRepeatBeginningRule