Class RomanianWordRepeatBeginningRule


public class RomanianWordRepeatBeginningRule extends WordRepeatBeginningRule
WordRepeatBeginningRule implementation for Romanian language.
  • Constructor Details

    • RomanianWordRepeatBeginningRule

      public RomanianWordRepeatBeginningRule(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
    • allowAmbiguousAdverbs

      protected boolean allowAmbiguousAdverbs()
      Indicates if ambiguous adverbs are to be considered. Ambiguous adverbs are words that have the 'adverb' tag along with other tags E.g. romanian word "Și" can be "adverb predicativ", "conjuncție coordonatoare" or "pronume (își)".
      Returns:
      true if ambiguous adverbs are to be considered.
    • isAdverb

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