public class GermanSpellerRule extends CompoundAwareHunspellRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
FILE_EXTENSION, hunspellDict, needsInit, nonWordPatternlanguage, LANGUAGETOOL, LANGUAGETOOL_FX, wordListLoader| Constructor and Description |
|---|
GermanSpellerRule(ResourceBundle messages,
German language) |
GermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIgnoreWords(String origLine) |
protected void |
addProhibitedWords(List<String> words) |
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() |
List<String> |
getSuggestions(String word) |
protected boolean |
ignoreWord(List<String> words,
int idx) |
protected void |
init() |
protected boolean |
isProhibited(String word) |
protected boolean |
isQuotedCompound(AnalyzedSentence analyzedSentence,
int idx,
String token) |
protected List<String> |
sortSuggestionByQuality(String misspelling,
List<String> suggestions) |
getCandidatesgetDescription, getSentenceTextWithoutUrlsAndImmunizedTokens, isMisspelled, match, tokenizeTextacceptPhrases, addIgnoreTokens, filterSuggestions, getAdditionalSuggestions, getAntiPatterns, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isConvertsCase, isDictionaryBasedSpellingRule, isEMail, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordaddExamplePair, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOfficepublic static final String RULE_ID
public GermanSpellerRule(ResourceBundle messages, German language)
public GermanSpellerRule(ResourceBundle messages, German language, UserConfig userConfig)
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)
addIgnoreWords in class SpellingCheckRuleprotected List<String> expandLine(String line)
expandLine in class SpellingCheckRulepublic List<String> getSuggestions(String word) throws IOException
getSuggestions in class CompoundAwareHunspellRuleIOExceptionprotected 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 SpellingCheckRuleIOExceptionprotected boolean isQuotedCompound(AnalyzedSentence analyzedSentence, int idx, String token)
isQuotedCompound in class HunspellRuleprotected void addProhibitedWords(List<String> words)
addProhibitedWords in class SpellingCheckRule