public class SwissGerman extends German
Constructor and Description |
---|
SwissGerman() |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
SpellingCheckRule |
createDefaultSpellingRule(ResourceBundle messages) |
Tagger |
createDefaultTagger()
Creates language specific part-of-speech tagger.
|
String |
getClosingDoubleQuote() |
String[] |
getCountries()
Get this language's country options , e.g.
|
String |
getName()
Get this language's name in English, e.g.
|
String |
getOpeningDoubleQuote() |
List<Rule> |
getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get a list of rules that can optionally use a
LanguageModel . |
List<Rule> |
getRelevantRemoteRules(ResourceBundle messageBundle,
List<RemoteRuleConfig> configs,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages,
boolean inputLogging)
For rules that depend on a remote server; based on
RemoteRule
will be executed asynchronously, with timeout, retries, etc. |
List<Rule> |
getRelevantRules(ResourceBundle messages,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get the rules classes that should run for texts in this language.
|
boolean |
isVariant()
|
close, createDefaultDisambiguator, createDefaultPostDisambiguationChunker, createDefaultSentenceTokenizer, createDefaultSynthesizer, createDefaultWordTokenizer, getClosingSingleQuote, getDefaultLanguageVariant, getDefaultSpellingRule, getLanguageModel, getMaintainedState, getMaintainers, getNonStrictCompoundSplitter, getOpeningSingleQuote, getPriorityForId, getRelevantLanguageModelRules, getShortCode, getStrictCompoundTokenizer, hasMinMatchesRules, isAdvancedTypographyEnabled, toAdvancedTypography
adaptSuggestion, adjustMatch, createDefaultChunker, createDefaultJLanguageTool, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLocale, getLocaleWithCountryAndVariant, getPatternRules, getPostDisambiguationChunker, getRelevantRulesGlobalConfig, getRemoteEnhancedRules, getRuleFileNames, getRulePriority, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, mergeSuggestions, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toString
@NotNull public Tagger createDefaultTagger()
Language
null
,
but it can be a trivial pseudo-tagger that only assigns null
tags.
This function will be called each time in Language.getTagger()
()} if tagger is not set.createDefaultTagger
in class German
public String[] getCountries()
Language
US
(as in en-US
) or
PL
(as in pl-PL
).getCountries
in class German
public String getName()
Language
English
or
German (Germany)
.public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
getRelevantRules
in class German
IOException
public SpellingCheckRule createDefaultSpellingRule(ResourceBundle messages) throws IOException
createDefaultSpellingRule
in class German
IOException
public List<Rule> getRelevantLanguageModelCapableRules(ResourceBundle messages, @Nullable LanguageModel languageModel, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException
Language
LanguageModel
. Returns an empty list for
languages that don't have such rules.getRelevantLanguageModelCapableRules
in class Language
languageModel
- null if no language model is availableIOException
public boolean isVariant()
Language
public List<Rule> getRelevantRemoteRules(ResourceBundle messageBundle, List<RemoteRuleConfig> configs, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages, boolean inputLogging) throws IOException
Language
RemoteRule
will be executed asynchronously, with timeout, retries, etc. as configured
Can return non-remote rules (e.g. if configuration missing, or for A/B tests), will be executed normallygetRelevantRemoteRules
in class Language
IOException
public List<RuleMatch> adaptSuggestions(List<RuleMatch> ruleMatches, Set<String> enabledRules)
adaptSuggestions
in class Language
public String getOpeningDoubleQuote()
getOpeningDoubleQuote
in class German
public String getClosingDoubleQuote()
getClosingDoubleQuote
in class German