public class GermanSpellerRule extends CompoundAwareHunspellRule
| Modifier and Type | Field and Description |
|---|---|
static String |
RULE_ID |
FILE_EXTENSION, hunspell, nonWordPatternCUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, 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) |
getCandidates, getStreamsensureInitialized, getActiveChecks, getDescription, getDictFilenameInResources, getSentenceTextWithoutUrlsAndImmunizedTokens, getShortMessage, isInIgnoredSet, tokenizeTextacceptPhrases, addIgnoreTokens, addSuggestionsToRuleMatch, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isLatinScript, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWordsaddExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, 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)
public RuleMatch[] match(AnalyzedSentence sentence) throws IOException
match in class HunspellRuleIOExceptionprotected void init()
throws IOException
init in class HunspellRuleIOExceptionpublic String getId()
getId in class HunspellRuleprotected boolean isIgnoredNoCase(String word)
isIgnoredNoCase in class SpellingCheckRule@NotNull protected String getMessage(String origWord, SuggestedReplacement firstSuggestion)
getMessage 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 SpellingCheckRuleprotected RuleMatch createWrongSplitMatch(AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int pos, String coveredWord, String suggestion1, String suggestion2, int prevPos)
createWrongSplitMatch in class SpellingCheckRulepublic List<String> getSuggestions(String word) throws IOException
getSuggestions in class CompoundAwareHunspellRuleIOExceptionprotected boolean acceptSuggestion(String s)
acceptSuggestion in class HunspellRule@Nullable protected static MorfologikMultiSpeller getSpeller(Language language, UserConfig userConfig, String languageVariantPlainTextDict)
protected 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 boolean ignorePotentiallyMisspelledWord(String word) throws IOException
ignorePotentiallyMisspelledWord in class SpellingCheckRuleIOExceptionprotected List<SuggestedReplacement> getAdditionalTopSuggestions(List<SuggestedReplacement> 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 List<SuggestedReplacement> filterNoSuggestWords(List<SuggestedReplacement> l)
filterNoSuggestWords in class SpellingCheckRuleprotected List<SuggestedReplacement> getOnlySuggestions(String word)
getOnlySuggestions in class SpellingCheckRule