Class RussianSimpleReplaceRule


  • public class RussianSimpleReplaceRule
    extends org.languagetool.rules.AbstractSimpleReplaceRule2
    A rule that matches words or phrases which should not be used and suggests correct ones instead. Russian implementations. Loads the relevant words from rules/ru/replace.txt.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Locale RU_LOCALE  
      static java.lang.String RUSSIAN_SIMPLE_REPLACE_RULE  
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()  
      java.lang.String getFileName()  
      java.lang.String getId()  
      java.util.Locale getLocale()  
      java.lang.String getShort()  
      java.lang.String getSuggestion()  
      java.lang.String getSuggestionsSeparator()  
      • Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2

        getWrongWords, isCaseSensitive, isException, 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

      • RUSSIAN_SIMPLE_REPLACE_RULE

        public static final java.lang.String RUSSIAN_SIMPLE_REPLACE_RULE
        See Also:
        Constant Field Values
      • RU_LOCALE

        private static final java.util.Locale RU_LOCALE
    • Constructor Detail

      • RussianSimpleReplaceRule

        public RussianSimpleReplaceRule​(java.util.ResourceBundle messages)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Specified by:
        getFileName in class org.languagetool.rules.AbstractSimpleReplaceRule2
      • getId

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

        public java.lang.String getDescription()
        Specified by:
        getDescription in class org.languagetool.rules.AbstractSimpleReplaceRule2
      • getShort

        public java.lang.String getShort()
        Specified by:
        getShort in class org.languagetool.rules.AbstractSimpleReplaceRule2
      • getSuggestion

        public java.lang.String getSuggestion()
        Specified by:
        getSuggestion in class org.languagetool.rules.AbstractSimpleReplaceRule2
      • getSuggestionsSeparator

        public java.lang.String getSuggestionsSeparator()
        Specified by:
        getSuggestionsSeparator in class org.languagetool.rules.AbstractSimpleReplaceRule2
      • getLocale

        public java.util.Locale getLocale()
        Specified by:
        getLocale in class org.languagetool.rules.AbstractSimpleReplaceRule2