| Package | Description |
|---|---|
| simplenlg.framework | |
| simplenlg.lexicon | |
| simplenlg.morphology.english |
| Modifier and Type | Method and Description |
|---|---|
WordElement |
InflectedWordElement.getBaseWord()
Retrieves the base word for this element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InflectedWordElement.setBaseWord(WordElement word)
Sets the base word for this element.
|
void |
WordElement.setFeatures(WordElement currentWord)
Sets Features from another existing WordElement into this WordElement.
|
| Constructor and Description |
|---|
InflectedWordElement(WordElement word)
Constructs a new inflected word from a WordElement
|
WordElement(WordElement currentWord)
creates a duplicate WordElement from an existing WordElement
|
| Modifier and Type | Method and Description |
|---|---|
protected WordElement |
Lexicon.createWord(String baseForm)
create a default WordElement.
|
protected WordElement |
Lexicon.createWord(String baseForm,
LexicalCategory category)
create a default WordElement.
|
WordElement |
Lexicon.getWord(String baseForm)
get a WordElement which has the specified base form (of any category)
|
WordElement |
Lexicon.getWord(String baseForm,
LexicalCategory category)
get a WordElement which has the specified base form and category
|
WordElement |
Lexicon.getWordByID(String id)
get a WordElement with the specified ID
|
WordElement |
Lexicon.getWordFromVariant(String variant)
returns a WordElement which has the specified inflected form and/or
spelling variant that matches the specified variant, of any category.
|
WordElement |
Lexicon.getWordFromVariant(String variant,
LexicalCategory category)
returns a WordElement which has the specified inflected form and/or
spelling variant that matches the specified variant, of the specified
category
|
WordElement |
Lexicon.lookupWord(String baseForm)
General word lookup method, tries base form, variant, ID (in this order)
Creates new word if can't find existing word
|
WordElement |
Lexicon.lookupWord(String baseForm,
LexicalCategory category)
General word lookup method, tries base form, variant, ID (in this order)
Creates new word if can't find existing word
|
| Modifier and Type | Method and Description |
|---|---|
List<WordElement> |
Lexicon.getWords(String baseForm)
returns all Words which have the specified base form
|
List<WordElement> |
NIHDBLexicon.getWords(String baseForm,
LexicalCategory category) |
abstract List<WordElement> |
Lexicon.getWords(String baseForm,
LexicalCategory category)
returns all Words which have the specified base form and category
|
List<WordElement> |
MultipleLexicon.getWords(String baseForm,
LexicalCategory category) |
List<WordElement> |
XMLLexicon.getWords(String baseForm,
LexicalCategory category) |
List<WordElement> |
NIHDBLexicon.getWordsByID(String id) |
abstract List<WordElement> |
Lexicon.getWordsByID(String id)
returns a List of WordElement which have this ID.
|
List<WordElement> |
MultipleLexicon.getWordsByID(String id) |
List<WordElement> |
XMLLexicon.getWordsByID(String id) |
List<WordElement> |
Lexicon.getWordsFromVariant(String variant)
returns Words which have an inflected form and/or spelling variant that
matches the specified variant, of any category.
|
List<WordElement> |
NIHDBLexicon.getWordsFromVariant(String variant,
LexicalCategory category) |
abstract List<WordElement> |
Lexicon.getWordsFromVariant(String variant,
LexicalCategory category)
returns Words which have an inflected form and/or spelling variant that
matches the specified variant, and are in the specified category.
|
List<WordElement> |
MultipleLexicon.getWordsFromVariant(String variant,
LexicalCategory category) |
List<WordElement> |
XMLLexicon.getWordsFromVariant(String variant,
LexicalCategory category) |
| Modifier and Type | Method and Description |
|---|---|
static NLGElement |
MorphologyRules.doAdjectiveMorphology(InflectedWordElement element,
WordElement baseWord)
This method performs the morphology for adjectives.
|
static NLGElement |
MorphologyRules.doAdverbMorphology(InflectedWordElement element,
WordElement baseWord)
This method performs the morphology for adverbs.
|
protected static StringElement |
MorphologyRules.doNounMorphology(InflectedWordElement element,
WordElement baseWord)
This method performs the morphology for nouns.
|
protected static NLGElement |
MorphologyRules.doVerbMorphology(InflectedWordElement element,
WordElement baseWord)
This method performs the morphology for verbs.
|
Copyright © 2020. All Rights Reserved.