Class RussianWordRepeatRule


  • public class RussianWordRepeatRule
    extends org.languagetool.rules.AdvancedWordRepeatRule
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.regex.Pattern EXC_NONWORDS
      Excluded non-words (special symbols, Roman numerals etc.)
      private static java.util.regex.Pattern EXC_POS
      Excluded part of speech classes.
      private static java.util.Set<java.lang.String> EXC_WORDS
      Excluded dictionary words.
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      RussianWordRepeatRule​(java.util.ResourceBundle messages)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      protected java.util.regex.Pattern getExcludedNonWordsPattern()  
      protected java.util.regex.Pattern getExcludedPos()  
      protected java.util.Set<java.lang.String> getExcludedWordsPattern()  
      java.lang.String getId()  
      java.lang.String getMessage()  
      java.lang.String getShortMessage()  
      • Methods inherited from class org.languagetool.rules.AdvancedWordRepeatRule

        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

      • EXC_WORDS

        private static final java.util.Set<java.lang.String> EXC_WORDS
        Excluded dictionary words.
      • EXC_POS

        private static final java.util.regex.Pattern EXC_POS
        Excluded part of speech classes.
      • EXC_NONWORDS

        private static final java.util.regex.Pattern EXC_NONWORDS
        Excluded non-words (special symbols, Roman numerals etc.)
    • Constructor Detail

      • RussianWordRepeatRule

        public RussianWordRepeatRule​(java.util.ResourceBundle messages)
    • Method Detail

      • getId

        public final java.lang.String getId()
        Specified by:
        getId in class org.languagetool.rules.Rule
      • getDescription

        public final java.lang.String getDescription()
        Specified by:
        getDescription in class org.languagetool.rules.Rule
      • getExcludedWordsPattern

        protected java.util.Set<java.lang.String> getExcludedWordsPattern()
        Specified by:
        getExcludedWordsPattern in class org.languagetool.rules.AdvancedWordRepeatRule
      • getExcludedNonWordsPattern

        protected java.util.regex.Pattern getExcludedNonWordsPattern()
        Specified by:
        getExcludedNonWordsPattern in class org.languagetool.rules.AdvancedWordRepeatRule
      • getExcludedPos

        protected java.util.regex.Pattern getExcludedPos()
        Specified by:
        getExcludedPos in class org.languagetool.rules.AdvancedWordRepeatRule
      • getMessage

        public final java.lang.String getMessage()
        Specified by:
        getMessage in class org.languagetool.rules.AdvancedWordRepeatRule
      • getShortMessage

        public final java.lang.String getShortMessage()
        Specified by:
        getShortMessage in class org.languagetool.rules.AdvancedWordRepeatRule