public final class MorfologikRussianSpellerRule extends MorfologikSpellerRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored| Constructor and Description |
|---|
MorfologikRussianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
| Modifier and Type | Method and Description |
|---|---|
protected List<SuggestedReplacement> |
filterNoSuggestWords(List<SuggestedReplacement> l) |
String |
getConfigureText()
Overwrite this to define the Text in the option panel for the configurable value
|
int |
getDefaultValue()
Overwrite this to get a default Integer value by option panel
|
String |
getFileName()
Get the filename, e.g., /resource/pl/spelling.dict.
|
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
int |
getMaxConfigurableValue()
Overwrite this to define the maximum of a configurable value
|
int |
getMinConfigurableValue()
Overwrite this to define the minimum of a configurable value
|
boolean |
hasConfigurableValue()
Overwrite this to return true, if a value may be configured by option panel
|
protected boolean |
ignoreToken(AnalyzedTokenReadings[] tokens,
int idx)
Returns true iff the token at the given position should be ignored by the spell checker.
|
protected boolean |
isLatinScript() |
getDescription, getRuleMatches, getSpellingSuggestions, getTranslator, ignoreWord, isEmoji, isMisspelled, isMisspelled, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternacceptPhrases, 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, tokenizeNewWordsaddExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic static final String RULE_ID
public MorfologikRussianSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException
IOExceptionpublic String getFileName()
MorfologikSpellerRulegetFileName in class MorfologikSpellerRulepublic String getId()
RuleA-Z
and the underscore.getId in class MorfologikSpellerRuleprotected List<SuggestedReplacement> filterNoSuggestWords(List<SuggestedReplacement> l)
filterNoSuggestWords in class SpellingCheckRuleprotected boolean ignoreToken(AnalyzedTokenReadings[] tokens, int idx) throws IOException
SpellingCheckRuleSpellingCheckRule.ignorePotentiallyMisspelledWord(String) if the check you want to implement is slightly
computationally expensive.ignoreToken in class SpellingCheckRuleIOExceptionprotected boolean isLatinScript()
isLatinScript in class SpellingCheckRulepublic int getDefaultValue()
RulegetDefaultValue in class Rulepublic boolean hasConfigurableValue()
RulehasConfigurableValue in class Rulepublic int getMinConfigurableValue()
RulegetMinConfigurableValue in class Rulepublic int getMaxConfigurableValue()
RulegetMaxConfigurableValue in class Rulepublic String getConfigureText()
RulegetConfigureText in class Rule