Package org.languagetool.language
Class GermanyGerman
java.lang.Object
org.languagetool.Language
org.languagetool.LanguageWithModel
org.languagetool.language.German
org.languagetool.language.GermanyGerman
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SimpleGerman
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.don't use this method besides the inheritance or core code. -
Method Summary
Modifier and TypeMethodDescriptionString[]Get this language's country options , e.g.static GermangetName()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, createDefaultSpellingRule, createDefaultSynthesizer, createDefaultTagger, createDefaultWordTokenizer, filterRuleMatches, getClosingDoubleQuote, getClosingSingleQuote, getDefaultLanguageVariant, getDefaultSpellingRule, 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
-
Field Details
-
GERMANY_GERMAN_SHORT_CODE
- See Also:
-
-
Constructor Details
-
GermanyGerman
Deprecated.don't use this method besides the inheritance or core code. Languages are not supposed to be instantiated multiple times. They may contain heavy data which may waste the memory. UsegetInstance()instead.
-
-
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
-
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 -
getInstance
-