Class 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 java.util.regex.Pattern CONJUNCTIONS  
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.regex.Pattern getConjunctions()  
      java.lang.String getDescription()  
      java.lang.String getId()  
      protected java.lang.String getShort()  
      protected java.lang.String getSuggestion()  
      • 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 Detail

      • CONJUNCTIONS

        private static final java.util.regex.Pattern CONJUNCTIONS
    • Constructor Detail

      • PersianSpaceBeforeRule

        public PersianSpaceBeforeRule​(java.util.ResourceBundle messages,
                                      org.languagetool.Language language)
    • Method Detail

      • getConjunctions

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

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

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

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

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