Package org.languagetool.tokenizers
Class SimpleSentenceTokenizer.AnyLanguage
- java.lang.Object
-
- org.languagetool.Language
-
- org.languagetool.tokenizers.SimpleSentenceTokenizer.AnyLanguage
-
- Enclosing class:
- SimpleSentenceTokenizer
static class SimpleSentenceTokenizer.AnyLanguage extends Language
-
-
Constructor Summary
Constructors Constructor Description AnyLanguage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getCountries()Get this language's country options , e.g.Contributor[]getMaintainers()Get the name(s) of the maintainer(s) for this language ornull.java.lang.StringgetName()Get this language's name in English, e.g.java.util.List<Rule>getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)Get the rules classes that should run for texts in this language.java.lang.StringgetShortCode()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
-
-
-
-
Method Detail
-
getShortCode
public java.lang.String getShortCode()
Description copied from class:LanguageGet this language's character code, e.g.enfor 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:
getShortCodein classLanguage
-
getName
public java.lang.String getName()
Description copied from class:LanguageGet this language's name in English, e.g.EnglishorGerman (Germany).
-
getCountries
public java.lang.String[] getCountries()
Description copied from class:LanguageGet this language's country options , e.g.US(as inen-US) orPL(as inpl-PL).- Specified by:
getCountriesin classLanguage- Returns:
- String[] - array of country options for the language.
-
getMaintainers
public Contributor[] getMaintainers()
Description copied from class:LanguageGet the name(s) of the maintainer(s) for this language ornull.- Specified by:
getMaintainersin classLanguage
-
getRelevantRules
public java.util.List<Rule> getRelevantRules(java.util.ResourceBundle messages, UserConfig userConfig, Language motherTongue, java.util.List<Language> altLanguages)
Description copied from class:LanguageGet the rules classes that should run for texts in this language.- Specified by:
getRelevantRulesin classLanguage
-
-