Package org.languagetool.rules.de
Class SwissGermanSpellerRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.spelling.SpellingCheckRule
-
- org.languagetool.rules.spelling.hunspell.HunspellRule
-
- org.languagetool.rules.spelling.hunspell.CompoundAwareHunspellRule
-
- org.languagetool.rules.de.GermanSpellerRule
-
- org.languagetool.rules.de.SwissGermanSpellerRule
-
public class SwissGermanSpellerRule extends GermanSpellerRule
- Since:
- 3.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.languagetool.rules.de.GermanSpellerRule
GermanSpellerRule.ExpandingReader
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT
private org.languagetool.rules.spelling.CachingWordListLoader
wordListLoader
-
Fields inherited from class org.languagetool.rules.de.GermanSpellerRule
RULE_ID
-
Fields inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
FILE_EXTENSION, hunspellDict, needsInit, nonWordPattern, suggestionsOrderer
-
-
Constructor Summary
Constructors Constructor Description SwissGermanSpellerRule(java.util.ResourceBundle messages, German language)
SwissGermanSpellerRule(java.util.ResourceBundle messages, German language, org.languagetool.UserConfig userConfig, org.languagetool.languagemodel.LanguageModel lm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.lang.String
getLanguageVariantSpellingFileName()
protected void
init()
-
Methods inherited from class org.languagetool.rules.de.GermanSpellerRule
addIgnoreWords, addProhibitedWords, expandLine, filterForLanguage, getAdditionalTopSuggestions, getCandidates, getFilteredSuggestions, getSuggestions, ignoreWord, isAcceptedWordFromLanguage, isMisspelled, isProhibited, isQuotedCompound, sortSuggestionByQuality
-
Methods inherited from class org.languagetool.rules.spelling.hunspell.CompoundAwareHunspellRule
getCandidates
-
Methods inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
getActiveChecks, getDescription, getDictFilenameInResources, getSentenceTextWithoutUrlsAndImmunizedTokens, match, tokenizeText
-
Methods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptedInAlternativeLanguage, acceptPhrases, addIgnoreTokens, addSuggestionsToRuleMatch, createWrongSplitMatch, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAlternativeLangSpellingRules, getAntiPatterns, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isUrl, reorderSuggestions, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
-
-
-
Field Detail
-
wordListLoader
private final org.languagetool.rules.spelling.CachingWordListLoader wordListLoader
-
LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT
private static final java.lang.String LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SwissGermanSpellerRule
public SwissGermanSpellerRule(java.util.ResourceBundle messages, German language)
-
SwissGermanSpellerRule
public SwissGermanSpellerRule(java.util.ResourceBundle messages, German language, org.languagetool.UserConfig userConfig, org.languagetool.languagemodel.LanguageModel lm)
- Since:
- 4.2
-
-
Method Detail
-
getId
public java.lang.String getId()
- Overrides:
getId
in classGermanSpellerRule
-
init
protected void init() throws java.io.IOException
- Overrides:
init
in classGermanSpellerRule
- Throws:
java.io.IOException
-
getLanguageVariantSpellingFileName
public java.lang.String getLanguageVariantSpellingFileName()
- Overrides:
getLanguageVariantSpellingFileName
in classorg.languagetool.rules.spelling.SpellingCheckRule
-
-