Package org.languagetool.language
Class AustrianGerman
java.lang.Object
org.languagetool.Language
org.languagetool.LanguageWithModel
org.languagetool.language.German
org.languagetool.language.AustrianGerman
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDefaultSpellingRule(ResourceBundle messages) String[]Get this language's country options , e.g.getName()Get this language's name in English, e.g.getRelevantLanguageModelCapableRules(ResourceBundle messages, LanguageModel languageModel, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get a list of rules that can optionally use aLanguageModel.getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get the rules classes that should run for texts in this language.Get the location of the rule file(s) in a form like/org/languagetool/rules/de/grammar.xml, i.e.booleanWhether this is a country variant of another language, i.e.Methods inherited from class org.languagetool.language.German
createDefaultDisambiguator, createDefaultPostDisambiguationChunker, createDefaultSentenceTokenizer, createDefaultSynthesizer, createDefaultTagger, createDefaultWordTokenizer, filterRuleMatches, getClosingDoubleQuote, getClosingSingleQuote, getDefaultLanguageVariant, getDefaultSpellingRule, getInstance, getMaintainedState, getMaintainers, getMultitokenSpeller, getNonStrictCompoundSplitter, getOpeningDoubleQuote, getOpeningSingleQuote, getPriorityForId, getPriorityMap, getRelevantLanguageModelRules, getShortCode, getStrictCompoundTokenizer, hasMinMatchesRules, isAdvancedTypographyEnabled, prepareLineForSpeller, toAdvancedTypographyMethods inherited from class org.languagetool.LanguageWithModel
close, getLanguageModel, initLanguageModelMethods inherited from class org.languagetool.Language
adaptSuggestion, adjustMatch, createDefaultChunker, createDefaultJLanguageTool, equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getConsistencyRulePrefix, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultRulePriorityForStyle, getDefaultSpellingRule, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLocale, getLocaleWithCountryAndVariant, getPatternRules, getPostDisambiguationChunker, getRelevantRemoteRules, getRelevantRulesGlobalConfig, getRemoteEnhancedRules, getRulePriority, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWordTokenizer, hashCode, hasNGramFalseFriendRule, hasVariant, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, setChunker, setDisambiguator, setPostDisambiguationChunker, setSentenceTokenizer, setSynthesizer, setTagger, setWordTokenizer, toString
-
Constructor Details
-
AustrianGerman
public AustrianGerman()
-
-
Method Details
-
getCountries
Description copied from class:LanguageGet this language's country options , e.g.US(as inen-US) orPL(as inpl-PL).- Overrides:
getCountriesin classGerman- Returns:
- String[] - array of country options for the language.
-
getName
Description copied from class:LanguageGet this language's name in English, e.g.EnglishorGerman (Germany). -
getRelevantRules
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException Description copied from class:LanguageGet the rules classes that should run for texts in this language.- Overrides:
getRelevantRulesin classGerman- Throws:
IOException
-
createDefaultSpellingRule
- Overrides:
createDefaultSpellingRulein classGerman- Throws:
IOException
-
getRelevantLanguageModelCapableRules
public List<Rule> getRelevantLanguageModelCapableRules(ResourceBundle messages, @Nullable LanguageModel languageModel, GlobalConfig globalConfig, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) throws IOException Description copied from class:LanguageGet a list of rules that can optionally use aLanguageModel. Returns an empty list for languages that don't have such rules.- Overrides:
getRelevantLanguageModelCapableRulesin classLanguage- Parameters:
languageModel- null if no language model is available- Throws:
IOException
-
getRuleFileNames
Description copied from class:LanguageGet the location of the rule file(s) in a form like/org/languagetool/rules/de/grammar.xml, i.e. a path in the classpath. The files must exist or an exception will be thrown, unless the filename contains the string-test-.- Overrides:
getRuleFileNamesin classLanguage
-
isVariant
public boolean isVariant()Description copied from class:Language
-