public class GermanSpellerRule extends CompoundAwareHunspellRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
FILE_EXTENSION, hunspell, needsInit, nonWordPattern, suggestionsOrdererignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, wordListLoader, wordsToBeIgnored| Constructor and Description |
|---|
GermanSpellerRule(ResourceBundle messages,
German language) |
GermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
String languageVariantPlainTextDict) |
GermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
String languageVariantPlainTextDict,
List<Language> altLanguages,
LanguageModel languageModel) |
| 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) |
protected List<String> |
getFilteredSuggestions(List<String> wordsOrPhrases) |
String |
getId() |
List<String> |
getSuggestions(String word) |
protected boolean |
ignoreWord(List<String> words,
int idx) |
protected void |
init() |
protected boolean |
isAcceptedWordFromLanguage(Language language,
String word) |
boolean |
isMisspelled(String word) |
protected boolean |
isProhibited(String word) |
protected boolean |
isQuotedCompound(AnalyzedSentence analyzedSentence,
int idx,
String token) |
protected List<String> |
sortSuggestionByQuality(String misspelling,
List<String> suggestions) |
getCandidatesgetActiveChecks, getDescription, getDictFilenameInResources, getSentenceTextWithoutUrlsAndImmunizedTokens, match, tokenizeTextacceptedInAlternativeLanguage, acceptPhrases, addIgnoreTokens, addSuggestionsToRuleMatch, createWrongSplitMatch, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAlternativeLangSpellingRules, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isUrl, reorderSuggestions, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordaddExamplePair, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setExamplePair, 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, String languageVariantPlainTextDict)
public GermanSpellerRule(ResourceBundle messages, German language, UserConfig userConfig, String languageVariantPlainTextDict, List<Language> altLanguages, LanguageModel languageModel)
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 List<String> getFilteredSuggestions(List<String> wordsOrPhrases)
getFilteredSuggestions in class CompoundAwareHunspellRulepublic boolean isMisspelled(String word)
isMisspelled in class HunspellRuleprotected 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 SpellingCheckRuleprotected boolean isAcceptedWordFromLanguage(Language language, String word)
isAcceptedWordFromLanguage in class HunspellRule