Class PersianWordRepeatRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.WordRepeatRule
org.languagetool.rules.fa.PersianWordRepeatRule

public class PersianWordRepeatRule extends org.languagetool.rules.WordRepeatRule
Word repeat rule for English, to avoid false alarms in the generic word repetition rule.
Since:
2.7
  • Field Summary

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
    PersianWordRepeatRule(ResourceBundle messages, org.languagetool.Language language)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    ignore(org.languagetool.AnalyzedTokenReadings[] tokens, int position)
     
    private boolean
    wordRepetitionOf(String word, org.languagetool.AnalyzedTokenReadings[] tokens, int position)
     

    Methods inherited from class org.languagetool.rules.WordRepeatRule

    createRuleMatch, estimateContextForSureMatch, getDescription, match

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PersianWordRepeatRule

      public PersianWordRepeatRule(ResourceBundle messages, org.languagetool.Language language)
  • Method Details

    • getId

      public String getId()
      Overrides:
      getId in class org.languagetool.rules.WordRepeatRule
    • ignore

      public boolean ignore(org.languagetool.AnalyzedTokenReadings[] tokens, int position)
      Overrides:
      ignore in class org.languagetool.rules.WordRepeatRule
    • wordRepetitionOf

      private boolean wordRepetitionOf(String word, org.languagetool.AnalyzedTokenReadings[] tokens, int position)