Package org.languagetool.tokenizers
Class SimpleSentenceTokenizer.AnyLanguage
java.lang.Object
org.languagetool.Language
org.languagetool.tokenizers.SimpleSentenceTokenizer.AnyLanguage
- Enclosing class:
- SimpleSentenceTokenizer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Get this language's country options , e.g.Get the name(s) of the maintainer(s) for this language ornull
.getName()
Get this language's name in English, e.g.getRelevantRules
(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Get the rules classes that should run for texts in this language.Get this language's character code, e.g.Methods inherited from class org.languagetool.Language
equals, equalsConsiderVariantsIfSpecified, getChunker, getCommonWordsPath, getDefaultDisabledRulesForVariant, getDefaultEnabledRulesForVariant, getDefaultLanguageVariant, getDisambiguationUnifier, getDisambiguationUnifierConfiguration, getDisambiguator, getIgnoredCharactersRegex, getLanguageModel, getLocale, getLocaleWithCountryAndVariant, getMaintainedState, getPatternRules, getPostDisambiguationChunker, getPriorityForId, getRelevantLanguageModelCapableRules, getRelevantLanguageModelRules, getRelevantNeuralNetworkModels, getRelevantRulesGlobalConfig, getRelevantWord2VecModelRules, getRuleFileNames, getSentenceTokenizer, getShortCodeWithCountryAndVariant, getSynthesizer, getTagger, getTranslatedName, getUnifier, getUnifierConfiguration, getVariant, getWord2VecModel, getWordTokenizer, hashCode, hasNGramFalseFriendRule, hasVariant, initLanguageModel, isExternal, isHiddenFromGui, isSpellcheckOnlyLanguage, isVariant, toString
-
Constructor Details
-
AnyLanguage
AnyLanguage()
-
-
Method Details
-
getShortCode
Description copied from class:Language
Get this language's character code, e.g.en
for English. For most languages this is a two-letter code according to ISO 639-1, but for those languages that don't have a two-letter code, a three-letter code according to ISO 639-2 is returned. The country parameter (e.g. "US"), if any, is not returned.- Specified by:
getShortCode
in classLanguage
-
getName
Description copied from class:Language
Get this language's name in English, e.g.English
orGerman (Germany)
. -
getCountries
Description copied from class:Language
Get this language's country options , e.g.US
(as inen-US
) orPL
(as inpl-PL
).- Specified by:
getCountries
in classLanguage
- Returns:
- String[] - array of country options for the language.
-
getMaintainers
Description copied from class:Language
Get the name(s) of the maintainer(s) for this language ornull
.- Specified by:
getMaintainers
in classLanguage
-
getRelevantRules
public List<Rule> getRelevantRules(ResourceBundle messages, UserConfig userConfig, Language motherTongue, List<Language> altLanguages) Description copied from class:Language
Get the rules classes that should run for texts in this language.- Specified by:
getRelevantRules
in classLanguage
-