public class HunspellNoSuggestionRule extends HunspellRule
HunspellRule, but does not offer suggestions for incorrect words
as that is very slow with Hunspell.| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
FILE_EXTENSION, hunspell, nonWordPatternCUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored| Constructor and Description |
|---|
HunspellNoSuggestionRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
HunspellNoSuggestionRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
IncorrectExample incorrectExample,
CorrectExample correctedExample) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
A short description of the error this rule can detect, usually in the language of the text
that is checked.
|
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
List<String> |
getSuggestions(String word) |
acceptSuggestion, ensureInitialized, getActiveChecks, getDictFilenameInResources, getSentenceTextWithoutUrlsAndImmunizedTokens, init, isInIgnoredSet, isMisspelled, isQuotedCompound, match, sortSuggestionByQuality, tokenizeTextacceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterNoSuggestWords, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAdditionalTopSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getOnlySuggestions, getProhibitFileName, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreToken, ignoreWord, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isLatinScript, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWordsaddExamplePair, 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, useInOfficepublic static final String RULE_ID
public HunspellNoSuggestionRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages)
public HunspellNoSuggestionRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages, IncorrectExample incorrectExample, CorrectExample correctedExample)
public String getId()
RuleA-Z
and the underscore.getId in class HunspellRulepublic String getDescription()
RulegetDescription in class HunspellRulepublic List<String> getSuggestions(String word) throws IOException
getSuggestions in class HunspellRuleIOException