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
SentenceObject s. |
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()
Language
public java.util.Locale getLanguage()
Language
Locale
representing the language the interface is
applicable for.getLanguage
in interface Language
Locale
.public Word getWord(java.lang.String word)
Language
Word
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)
Language
Sentence
Object. Sentence.SentenceType
.Word
Objects representing all Words of the
input.Sentence
for further information.getSentence
in interface Language
sentence
- The input word sequence.null
.public SentenceObjectSet getSentenceObjects(Sentence sentence)
Language
SentenceObjectSet
containing the
SentenceObject
s.
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 Language
sentence
- The input Sentence
Object.SentenceObject
s.public void setWordCache(WordCache wordCache)
Language
WordCache
Object for caching word information of this
language. ACIS.getWordCache()
.setWordCache
in interface Language
wordCache
- The WordCache
to use.