org.languagetool.language
Class Demo

Object
  extended by Language
      extended by Demo

public class Demo
extends Language


Field Summary
 
Fields inherited from class Language
ASTURIAN, BELARUSIAN, BRETON, CATALAN, CHINESE, DANISH, DEMO, DUTCH, ENGLISH, ESPERANTO, FRENCH, GALICIAN, GERMAN, ICELANDIC, ITALIAN, KHMER, LANGUAGES, LITHUANIAN, MALAYALAM, POLISH, REAL_LANGUAGES, ROMANIAN, RUSSIAN, SLOVAK, SLOVENIAN, SPANISH, SWEDISH, TAGALOG, UKRAINIAN
 
Constructor Summary
Demo()
           
 
Method Summary
 String[] getCountryVariants()
          Get this language's variants, e.g.
 Locale getLocale()
          Get this language's Java locale.
 Contributor[] getMaintainers()
          Get the name(s) of the maintainer(s) for this language or null.
 String getName()
          Get this language's name in English, e.g.
 List<Class<? extends Rule>> getRelevantRules()
          Get the rules classes that should run for texts in this language.
 String getShortName()
          Get this language's two character code, e.g.
 Tagger getTagger()
          Get this language's part-of-speech tagger implementation.
 
Methods inherited from class Language
getAllMaintainers, getDisambiguationUnifier, getDisambiguator, getExternalLanguages, getLanguageForName, getLanguageForShortName, getRuleFileName, getSentenceTokenizer, getSynthesizer, getTranslatedName, getUnifier, getUnpairedRuleEndSymbols, getUnpairedRuleStartSymbols, getWordTokenizer, isExternal, reInit, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Demo

public Demo()
Method Detail

getLocale

public Locale getLocale()
Description copied from class: Language
Get this language's Java locale.

Specified by:
getLocale in class Language

getName

public String getName()
Description copied from class: Language
Get this language's name in English, e.g. English or German.

Specified by:
getName in class Language
Returns:
String - language name

getShortName

public String getShortName()
Description copied from class: Language
Get this language's two character code, e.g. en for English.

Specified by:
getShortName in class Language
Returns:
String - language code

getCountryVariants

public String[] getCountryVariants()
Description copied from class: Language
Get this language's variants, e.g. US (as in en_US) or PL (as in pl_PL).

Specified by:
getCountryVariants in class Language
Returns:
String[] - array of country variants for the language.

getTagger

public Tagger getTagger()
Description copied from class: Language
Get this language's part-of-speech tagger implementation.

Overrides:
getTagger in class Language

getMaintainers

public Contributor[] getMaintainers()
Description copied from class: Language
Get the name(s) of the maintainer(s) for this language or null.

Specified by:
getMaintainers in class Language

getRelevantRules

public List<Class<? extends Rule>> getRelevantRules()
Description copied from class: Language
Get the rules classes that should run for texts in this language.

Specified by:
getRelevantRules in class Language


Copyright © 2005-2011 Daniel Naber