public final class MorfologikUkrainianSpellerRule extends MorfologikSpellerRule
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3
CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored
Constructor and Description |
---|
MorfologikUkrainianSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
Modifier and Type | Method and Description |
---|---|
protected List<SuggestedReplacement> |
filterSuggestions(List<SuggestedReplacement> suggestions)
Remove prohibited words from suggestions.
|
protected List<SuggestedReplacement> |
getAdditionalSuggestions(List<SuggestedReplacement> suggestions,
String word)
Get additional suggestions added after other suggestions (note the rule may choose to
re-order the suggestions anyway).
|
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() |
protected boolean |
isMisspelled(MorfologikMultiSpeller speller,
String word) |
getDescription, getRuleMatches, getSpellingSuggestions, getTranslator, ignoreWord, isEmoji, isMisspelled, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPattern
acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterNoSuggestWords, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalTopSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getOnlySuggestions, getProhibitFileName, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWords
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, 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, useInOffice
public MorfologikUkrainianSpellerRule(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 boolean isMisspelled(MorfologikMultiSpeller speller, String word)
isMisspelled
in class MorfologikSpellerRule
protected List<SuggestedReplacement> getAdditionalSuggestions(List<SuggestedReplacement> suggestions, String word)
SpellingCheckRule
getAdditionalSuggestions
in class SpellingCheckRule
protected boolean ignoreToken(AnalyzedTokenReadings[] tokens, int idx) throws IOException
SpellingCheckRule
SpellingCheckRule.ignorePotentiallyMisspelledWord(String)
if the check you want to implement is slightly
computationally expensive.ignoreToken
in class SpellingCheckRule
IOException
protected List<SuggestedReplacement> filterSuggestions(List<SuggestedReplacement> suggestions)
SpellingCheckRule
filterSuggestions
in class SpellingCheckRule
protected boolean isLatinScript()
isLatinScript
in class SpellingCheckRule