Class PersianSpaceBeforeRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSpaceBeforeRule
org.languagetool.rules.fa.PersianSpaceBeforeRule

public class PersianSpaceBeforeRule extends org.languagetool.rules.AbstractSpaceBeforeRule
A Persian rule that checks if there is a missing space before some conjunctions.
Since:
2.7
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Pattern
     

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected Pattern
     
     
     
    protected String
     
    protected String
     

    Methods inherited from class org.languagetool.rules.AbstractSpaceBeforeRule

    match

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, estimateContextForSureMatch, 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
  • Field Details

    • CONJUNCTIONS

      private static final Pattern CONJUNCTIONS
  • Constructor Details

    • PersianSpaceBeforeRule

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

    • getConjunctions

      protected Pattern getConjunctions()
      Specified by:
      getConjunctions in class org.languagetool.rules.AbstractSpaceBeforeRule
    • getId

      public String getId()
      Overrides:
      getId in class org.languagetool.rules.AbstractSpaceBeforeRule
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class org.languagetool.rules.AbstractSpaceBeforeRule
    • getShort

      protected String getShort()
      Overrides:
      getShort in class org.languagetool.rules.AbstractSpaceBeforeRule
    • getSuggestion

      protected String getSuggestion()
      Overrides:
      getSuggestion in class org.languagetool.rules.AbstractSpaceBeforeRule