|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectLanguage
public abstract class Language
Base class for any supported language (English, German, etc).
| Field Summary | |
|---|---|
static Language |
CZECH
|
static Language |
DEMO
|
static Language |
DUTCH
|
static Language |
ENGLISH
|
static Language |
FRENCH
|
static Language |
GERMAN
|
static Language |
ITALIAN
|
static Language[] |
LANGUAGES
All languages supported by LanguageTool. |
static Language |
LITHUANIAN
|
static Language |
POLISH
|
static Language[] |
REAL_LANGUAGES
All languages supported by LanguageTool, but without the demo language. |
static Language |
RUSSIAN
|
static Language |
SLOVENIAN
|
static Language |
SPANISH
|
static Language |
SWEDISH
|
static Language |
UKRAINIAN
|
| Constructor Summary | |
|---|---|
Language()
|
|
| Method Summary | |
|---|---|
abstract String[] |
getCountryVariants()
Get this language's country variants, e.g. |
Disambiguator |
getDisambiguator()
Get this language's part-of-speech disambiguator implementation. |
static List<Language> |
getExternalLanguages()
Return languages that are not built-in but have been added manually. |
static Language |
getLanguageForName(String languageName)
Get the Language object for the given language name. |
static Language |
getLanguageForShortName(String shortLanguageCode)
Get the Language object for the given short language name. |
abstract Locale |
getLocale()
Get this language's Java locale. |
abstract Contributor[] |
getMaintainers()
Get the name(s) of the maintainer(s) for this language or null. |
abstract String |
getName()
Get this language's name in English, e.g. |
abstract Set<String> |
getRelevantRuleIDs()
Get the IDs of the global rules that should run for texts in this language or null. |
String |
getRuleFileName()
Get the location of the rule file. |
SentenceTokenizer |
getSentenceTokenizer()
Get this language's sentence tokenizer implementation. |
abstract String |
getShortName()
Get this language's two character code, e.g. |
Synthesizer |
getSynthesizer()
Get this language's part-of-speech synthesizer implementation or null. |
Tagger |
getTagger()
Get this language's part-of-speech tagger implementation. |
String |
getTranslatedName(ResourceBundle messages)
Get the name of the language translated to the current locale, if available. |
Tokenizer |
getWordTokenizer()
Get this language's word tokenizer implementation. |
static void |
reInit(List<Language> languages)
Re-inits the built-in languages and adds the specified ones. |
String |
toString()
|
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Language CZECH
public static final Language DUTCH
public static final Language ENGLISH
public static final Language FRENCH
public static final Language GERMAN
public static final Language ITALIAN
public static final Language LITHUANIAN
public static final Language POLISH
public static final Language SLOVENIAN
public static final Language SPANISH
public static final Language SWEDISH
public static final Language UKRAINIAN
public static final Language RUSSIAN
public static final Language DEMO
public static Language[] LANGUAGES
public static Language[] REAL_LANGUAGES
| Constructor Detail |
|---|
public Language()
| Method Detail |
|---|
public abstract String getShortName()
en for English.
public abstract String getName()
English or German.
public abstract String[] getCountryVariants()
US or PL.
public abstract Locale getLocale()
public abstract Contributor[] getMaintainers()
null.
public abstract Set<String> getRelevantRuleIDs()
null.
public String getRuleFileName()
public Disambiguator getDisambiguator()
public Tagger getTagger()
public SentenceTokenizer getSentenceTokenizer()
public Tokenizer getWordTokenizer()
public Synthesizer getSynthesizer()
null.
public String getTranslatedName(ResourceBundle messages)
public static void reInit(List<Language> languages)
public static List<Language> getExternalLanguages()
public static Language getLanguageForShortName(String shortLanguageCode)
shortLanguageCode - e.g. en or de
nullpublic static Language getLanguageForName(String languageName)
languageName - e.g. English or German (case is significant)
nullpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||