public final class MorfologikRussianSpellerRule extends MorfologikSpellerRule
Modifier and Type | Field and Description |
---|---|
static String |
RULE_ID |
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3
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 |
getFileName()
Get the filename, e.g., /resource/pl/spelling.dict.
|
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
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, tokenizingPattern
acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAdditionalTopSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getOnlySuggestions, getProhibitFileName, getSpellingFileName, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWords
addExamplePair, addTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getUrl, hasConfigurableValue, hasTag, isDefaultOff, isDefaultTempOff, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
public static final String RULE_ID
public MorfologikRussianSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException
IOException
public String getFileName()
MorfologikSpellerRule
getFileName
in class MorfologikSpellerRule
public String getId()
Rule
A-Z
and the underscore.getId
in class MorfologikSpellerRule
protected List<SuggestedReplacement> filterNoSuggestWords(List<SuggestedReplacement> l)
filterNoSuggestWords
in class SpellingCheckRule
protected boolean ignoreToken(AnalyzedTokenReadings[] tokens, int idx) throws IOException
SpellingCheckRule
ignoreToken
in class SpellingCheckRule
IOException
protected boolean isLatinScript()
isLatinScript
in class SpellingCheckRule