public class GermanSpellerRule extends CompoundAwareHunspellRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
hunspellDict, needsInitlanguage, 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 List<String> |
sortSuggestionByQuality(String misspelling,
List<String> suggestions) |
getCandidates, getSuggestionsgetDescription, init, match, tokenizeTextaddIgnoreTokens, filterSuggestions, getAdditionalSuggestions, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isConvertsCase, isDictionaryBasedSpellingRule, isProhibited, isUrl, reset, setConsiderIgnoreWords, setConvertsCaseaddExamplePair, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getUrl, isDefaultOff, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setIncorrectExamples, setLocQualityIssueType, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic static final String RULE_ID
public GermanSpellerRule(ResourceBundle messages, German language)
public String getId()
getId in class HunspellRulepublic List<String> getCandidates(String word)
getCandidates in class CompoundAwareHunspellRuleprotected 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)
getAdditionalTopSuggestions in class SpellingCheckRule