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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final intprivate static final Stringstatic final Stringprivate static final PatternFields inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3Fields inherited from class org.languagetool.rules.spelling.SpellingCheckRule
CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored -
Constructor Summary
ConstructorsConstructorDescriptionMorfologikRussianSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SuggestedReplacement> Get the filename, e.g.,/resource/pl/spelling.dict.getId()A string used to identify the rule in e.g.Overwrite this to return configurable options for option panelprotected booleanignoreToken(AnalyzedTokenReadings[] tokens, int idx) Returns true iff the token at the given position should be ignored by the spell checker.protected booleanMethods inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
addHyphenSuggestions, getDescription, getRuleMatches, getSpellingSuggestions, getTranslator, ignoreWord, isMisspelled, isMisspelled, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternMethods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAdditionalTopSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getOnlySuggestions, getProhibitFileName, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWordsMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Field Details
-
RULE_ID
- See Also:
-
RESOURCE_FILENAME
- See Also:
-
RUSSIAN_LETTERS
-
DEFAULT_MIN_RU_VALUE
private static final int DEFAULT_MIN_RU_VALUE- See Also:
-
conf_ru_Value
private int conf_ru_Value -
lcDoNotSuggestWords
-
-
Constructor Details
-
MorfologikRussianSpellerRule
public MorfologikRussianSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException - Throws:
IOException
-
-
Method Details
-
getFileName
Description copied from class:MorfologikSpellerRuleGet the filename, e.g.,/resource/pl/spelling.dict.- Specified by:
getFileNamein classMorfologikSpellerRule
-
getId
Description copied from class:RuleA string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the charactersA-Zand the underscore.- Specified by:
getIdin classMorfologikSpellerRule
-
filterNoSuggestWords
- Overrides:
filterNoSuggestWordsin classSpellingCheckRule
-
ignoreToken
Description copied from class:SpellingCheckRuleReturns true iff the token at the given position should be ignored by the spell checker. UseSpellingCheckRule.ignorePotentiallyMisspelledWord(String)if the check you want to implement is slightly computationally expensive.- Overrides:
ignoreTokenin classSpellingCheckRule- Throws:
IOException
-
isLatinScript
protected boolean isLatinScript()- Overrides:
isLatinScriptin classSpellingCheckRule
-
getConfigureText
-
getRuleOptions
Description copied from class:RuleOverwrite this to return configurable options for option panel- Overrides:
getRuleOptionsin classRule
-