public abstract class CompoundAwareHunspellRule extends HunspellRule
hunspellDict, needsInit, RULE_IDlanguage, LANGUAGETOOL, LANGUAGETOOL_FX| Constructor and Description |
|---|
CompoundAwareHunspellRule(ResourceBundle messages,
Language language,
CompoundWordTokenizer wordSplitter,
MorfologikMultiSpeller morfoSpeller) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
filterForLanguage(List<String> suggestions) |
protected List<String> |
getCandidates(List<String> parts) |
protected List<String> |
getCandidates(String word) |
List<String> |
getSuggestions(String word)
As a hunspell-based approach is too slow, we use Morfologik to create suggestions.
|
protected List<String> |
sortSuggestionByQuality(String misspelling,
List<String> suggestions) |
getDescription, getId, init, match, tokenizeTextaddIgnoreTokens, addIgnoreWords, expandLine, filterSuggestions, getAdditionalSuggestions, getAdditionalTopSuggestions, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, ignoreWord, isConvertsCase, isDictionaryBasedSpellingRule, isProhibited, isUrl, reset, setConsiderIgnoreWords, setConvertsCaseaddExamplePair, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getUrl, isDefaultOff, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic CompoundAwareHunspellRule(ResourceBundle messages, Language language, CompoundWordTokenizer wordSplitter, MorfologikMultiSpeller morfoSpeller)
public List<String> getSuggestions(String word) throws IOException
getSuggestions in class HunspellRuleIOException