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