Class RussianSimpleWordRepeatRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.WordRepeatRule
org.languagetool.rules.ru.RussianSimpleWordRepeatRule

public class RussianSimpleWordRepeatRule extends WordRepeatRule
Avoid false alarms in the word repetition rule.
  • Field Details

    • PATTERN

      private static final Pattern PATTERN
  • Constructor Details

    • RussianSimpleWordRepeatRule

      public RussianSimpleWordRepeatRule(ResourceBundle messages, Language language)
  • Method Details

    • 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