public class GermanSpellerRule extends CompoundAwareHunspellRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
hunspellDict, needsInit, nonWordPatternlanguage, LANGUAGETOOL, LANGUAGETOOL_FX| Constructor and Description |
|---|
GermanSpellerRule(ResourceBundle messages,
German language) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIgnoreWords(String origLine,
Set<String> wordsToBeIgnored) |
protected List<String> |
expandLine(String line) |
protected void |
filterForLanguage(List<String> suggestions) |
protected List<String> |
getAdditionalTopSuggestions(List<String> suggestions,
String word) |
List<String> |
getCandidates(String word) |
String |
getId() |
protected boolean |
ignoreWord(List<String> words,
int idx) |
protected void |
init() |
protected boolean |
isProhibited(String word) |
protected List<String> |
sortSuggestionByQuality(String misspelling,
List<String> suggestions) |
getCandidates, getSuggestionsgetDescription, match, tokenizeTextacceptPhrases, addIgnoreTokens, filterSuggestions, getAdditionalSuggestions, getAntiPatterns, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isConvertsCase, isDictionaryBasedSpellingRule, isEMail, isUrl, reset, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordaddExamplePair, getCategory, getCorrectExamples, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getSentenceWithImmunization, getUrl, isDefaultOff, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic static final String RULE_ID
public GermanSpellerRule(ResourceBundle messages, German language)
protected void init()
throws IOException
init in class HunspellRuleIOExceptionpublic String getId()
getId in class HunspellRulepublic List<String> getCandidates(String word)
getCandidates in class CompoundAwareHunspellRuleprotected boolean isProhibited(String word)
isProhibited in class SpellingCheckRuleprotected void addIgnoreWords(String origLine, Set<String> wordsToBeIgnored)
addIgnoreWords in class SpellingCheckRuleprotected List<String> expandLine(String line)
expandLine in class SpellingCheckRuleprotected void filterForLanguage(List<String> suggestions)
filterForLanguage in class CompoundAwareHunspellRuleprotected List<String> sortSuggestionByQuality(String misspelling, List<String> suggestions)
sortSuggestionByQuality in class CompoundAwareHunspellRuleprotected boolean ignoreWord(List<String> words, int idx) throws IOException
ignoreWord in class SpellingCheckRuleIOExceptionprotected List<String> getAdditionalTopSuggestions(List<String> suggestions, String word) throws IOException
getAdditionalTopSuggestions in class SpellingCheckRuleIOException