Package org.languagetool.rules.ru
Class MorfologikRussianSpellerRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.spelling.SpellingCheckRule
-
- org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
- org.languagetool.rules.ru.MorfologikRussianSpellerRule
-
public final class MorfologikRussianSpellerRule extends org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringRESOURCE_FILENAMEstatic java.lang.StringRULE_IDprivate static java.util.regex.PatternRUSSIAN_LETTERS-
Fields inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
conversionLocale, speller1, speller2, speller3
-
-
Constructor Summary
Constructors Constructor Description MorfologikRussianSpellerRule(java.util.ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, java.util.List<org.languagetool.Language> altLanguages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()java.lang.StringgetId()protected booleanignoreToken(org.languagetool.AnalyzedTokenReadings[] tokens, int idx)-
Methods inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
getDescription, getFrequency, getRuleMatches, ignoreWord, isMisspelled, isMisspelled, isSurrogatePairCombination, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPattern
-
Methods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptedInAlternativeLanguage, acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAdditionalTopSuggestions, getAlternativeLangSpellingRules, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getProhibitFileName, getSpellingFileName, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isProhibited, isUrl, reorderSuggestions, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
-
-
-
Field Detail
-
RULE_ID
public static final java.lang.String RULE_ID
- See Also:
- Constant Field Values
-
RESOURCE_FILENAME
private static final java.lang.String RESOURCE_FILENAME
- See Also:
- Constant Field Values
-
RUSSIAN_LETTERS
private static final java.util.regex.Pattern RUSSIAN_LETTERS
-
-
Constructor Detail
-
MorfologikRussianSpellerRule
public MorfologikRussianSpellerRule(java.util.ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, java.util.List<org.languagetool.Language> altLanguages) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
- Specified by:
getFileNamein classorg.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
getId
public java.lang.String getId()
- Specified by:
getIdin classorg.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
ignoreToken
protected boolean ignoreToken(org.languagetool.AnalyzedTokenReadings[] tokens, int idx) throws java.io.IOException- Overrides:
ignoreTokenin classorg.languagetool.rules.spelling.SpellingCheckRule- Throws:
java.io.IOException
-
-