public class Unified extends java.lang.Object implements Language
| Constructor and Description |
|---|
Unified() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
getLanguage()
Returns a
Locale representing the language the interface is
applicable for. |
java.lang.String |
getName()
Returns the name of the Language interface.
|
Sentence |
getSentence(java.lang.String sentence)
Looks up information about a specific sentence (a row of words) and
returns a
Sentence Object. |
SentenceObjectSet |
getSentenceObjects(Sentence sentence)
Returns a
SentenceObjectSet containing the
SentenceObjects. |
Word |
getWord(java.lang.String word)
Looks up information about a specific word and returns a
Word
Object. |
void |
setWordCache(WordCache wordCache)
Sets a
WordCache Object for caching word information of this
language. |
public java.lang.String getName()
Languagepublic java.util.Locale getLanguage()
LanguageLocale representing the language the interface is
applicable for.getLanguage in interface LanguageLocale.public Word getWord(java.lang.String word)
LanguageWord
Object. WordCache (if present) and eventually load information form
there. Word for further information.
In case no information could be fetched about a word: The word type
should be Word.WordType.NotFound, the NormalForm is the TypedForm
and the synonyms are an empty array (not null).
public Sentence getSentence(java.lang.String sentence)
LanguageSentence Object. Sentence.SentenceType.Word Objects representing all Words of the
input.Sentence for further information.getSentence in interface Languagesentence - The input word sequence.null.public SentenceObjectSet getSentenceObjects(Sentence sentence)
LanguageSentenceObjectSet containing the
SentenceObjects.
This function must categorize ALL words into the categories ACTION, WHAT,
WHO, HOW and ELSE (as represented by a SentenceObject).
SentenceObjectSet for further information.getSentenceObjects in interface Languagesentence - The input Sentence Object.SentenceObjects.public void setWordCache(WordCache wordCache)
LanguageWordCache Object for caching word information of this
language. ACIS.getWordCache().setWordCache in interface LanguagewordCache - The WordCache to use.