Class CatalanWordRepeatRule


public class CatalanWordRepeatRule extends WordRepeatRule
Avoid false alarms in the word repetition rule.
  • 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 WordRepeatRule
    • ignore

      public boolean ignore(AnalyzedTokenReadings[] tokens, int position)
      Description copied from class: WordRepeatRule
      Implement this method to return true if there's a potential word repetition at the current position that should be ignored, i.e. if no error should be created.
      Overrides:
      ignore in class WordRepeatRule
      Parameters:
      tokens - the tokens of the sentence currently being checked
      position - the current position in the tokens
      Returns:
      this implementation always returns false