public abstract class AbstractEnglishSpellerRule extends MorfologikSpellerRule
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
topSuggestions |
protected Map<String,List<String>> |
topSuggestionsIgnoreCase |
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored| Constructor and Description |
|---|
AbstractEnglishSpellerRule(ResourceBundle messages,
Language language) |
AbstractEnglishSpellerRule(ResourceBundle messages,
Language language,
GlobalConfig globalConfig,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel,
Language motherTongue) |
AbstractEnglishSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
getDescription, getFileName, getId, getSpellingSuggestions, ignoreWord, isEmoji, isMisspelled, isMisspelled, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternacceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isLatinScript, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordaddExamplePair, 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, useInOfficepublic AbstractEnglishSpellerRule(ResourceBundle messages, Language language) throws IOException
IOExceptionpublic AbstractEnglishSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException
IOExceptionpublic AbstractEnglishSpellerRule(ResourceBundle messages, Language language, GlobalConfig globalConfig, UserConfig userConfig, List<Language> altLanguages, LanguageModel languageModel, Language motherTongue) throws IOException
IOExceptionpublic RuleMatch[] match(AnalyzedSentence sentence) throws IOException
match in class MorfologikSpellerRuleIOExceptionprotected List<SuggestedReplacement> filterNoSuggestWords(List<SuggestedReplacement> l)
filterNoSuggestWords in class SpellingCheckRuleprotected List<SuggestedReplacement> filterSuggestions(List<SuggestedReplacement> suggestions)
filterSuggestions in class SpellingCheckRuleprotected List<RuleMatch> getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens) throws IOException
getRuleMatches in class MorfologikSpellerRuleIOException@Nullable protected org.languagetool.rules.en.VariantInfo isValidInOtherVariant(String word)
protected List<SuggestedReplacement> getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions, String word) throws IOException
getAdditionalTopSuggestions in class SpellingCheckRuleIOExceptionprotected Translator getTranslator(GlobalConfig globalConfig)
getTranslator in class MorfologikSpellerRuleprotected boolean tokenizeNewWords()
tokenizeNewWords in class SpellingCheckRuleprotected List<SuggestedReplacement> getOnlySuggestions(String word)
getOnlySuggestions in class SpellingCheckRule