|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javatools.parsers.Language
public class Language
Class representing human languages
Nested Class Summary | |
---|---|
static class |
Language.LanguageNotSupportedException
|
Field Summary | |
---|---|
static Language |
ENGLISH
Modern English |
static Language |
FRENCH
French |
static Language |
GERMAN
German |
static Language |
ITALIAN
Italian |
static Language |
SPANISH
Spanish |
Constructor Summary | |
---|---|
Language(java.lang.String id)
Constructor |
Method Summary | |
---|---|
int |
compareTo(Language other)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getId()
|
java.lang.String |
getLongForm()
|
java.util.List<java.lang.String> |
getPronounCounterEntityTypes(java.lang.String pronoun)
returns the entity type associated with the pronoun (e.g. |
java.util.List<java.lang.String> |
getPronounEntityTypes(java.lang.String pronoun)
returns the entity type associated with the pronoun (e.g. |
java.util.Set<java.lang.String> |
getPronouns()
provides a list of all pronouns in this language |
int |
hashCode()
|
boolean |
isPronoun(java.lang.String candidate)
checks whether a string could be a pronoun of the language ignoring cases |
static void |
main(java.lang.String[] argv)
Test routine |
boolean |
supportedLanguage(java.lang.String lang)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Language ENGLISH
public static final Language GERMAN
public static final Language FRENCH
public static final Language SPANISH
public static final Language ITALIAN
Constructor Detail |
---|
public Language(java.lang.String id) throws Language.LanguageNotSupportedException
id
- ISO 639-1 language code
Language.LanguageNotSupportedException
Method Detail |
---|
public boolean isPronoun(java.lang.String candidate)
public java.util.Set<java.lang.String> getPronouns()
public java.util.List<java.lang.String> getPronounEntityTypes(java.lang.String pronoun)
public java.util.List<java.lang.String> getPronounCounterEntityTypes(java.lang.String pronoun)
public final boolean supportedLanguage(java.lang.String lang)
public final java.lang.String getLongForm()
public final java.lang.String getId()
public final boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public final int hashCode()
hashCode
in class java.lang.Object
public final int compareTo(Language other)
compareTo
in interface java.lang.Comparable<Language>
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |