org.languagetool.rules.ru
Class RussianSimpleReplaceRule

java.lang.Object
  extended by org.languagetool.rules.Rule
      extended by org.languagetool.rules.AbstractSimpleReplaceRule
          extended by org.languagetool.rules.ru.RussianSimpleReplaceRule

public class RussianSimpleReplaceRule
extends AbstractSimpleReplaceRule

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.

Author:
Yakov Reztsov

Field Summary
 
Fields inherited from class org.languagetool.rules.Rule
messages
 
Constructor Summary
RussianSimpleReplaceRule(ResourceBundle messages)
           
 
Method Summary
 String getDescription()
           
 String getFileName()
           
 String getId()
           
 Locale getLocale()
          locale used on case-conversion
 String getShort()
           
 String getSuggestion()
           
 boolean isCaseSensitive()
          use case-insensitive matching.
 
Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
getEncoding, match, reset
 
Methods inherited from class org.languagetool.rules.Rule
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getMatches, getMatchesIndex, getUrl, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, isSpellingRule, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setLocQualityIssueType, setParagraphBackTrack, setUrl, supportsLanguage, toRuleMatchArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RussianSimpleReplaceRule

public RussianSimpleReplaceRule(ResourceBundle messages)
                         throws IOException
Throws:
IOException
Method Detail

getFileName

public final String getFileName()
Specified by:
getFileName in class AbstractSimpleReplaceRule

getId

public final String getId()
Overrides:
getId in class AbstractSimpleReplaceRule

getDescription

public String getDescription()
Overrides:
getDescription in class AbstractSimpleReplaceRule

getShort

public String getShort()
Overrides:
getShort in class AbstractSimpleReplaceRule

getSuggestion

public String getSuggestion()
Overrides:
getSuggestion in class AbstractSimpleReplaceRule

isCaseSensitive

public boolean isCaseSensitive()
use case-insensitive matching.

Overrides:
isCaseSensitive in class AbstractSimpleReplaceRule

getLocale

public Locale getLocale()
locale used on case-conversion

Overrides:
getLocale in class AbstractSimpleReplaceRule


Copyright © 2013. All Rights Reserved.