| Package | Description |
|---|---|
| simplenlg.features | |
| simplenlg.framework |
| Modifier and Type | Method and Description |
|---|---|
static Inflection |
Inflection.getInflCode(String code)
convenience method: parses an inflectional code such as
"irreg|woman|women" to retrieve the first element, which is the code
itself, then maps it to the value of
Inflection. |
static Inflection |
Inflection.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Inflection[] |
Inflection.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Inflection,simplenlg.framework.WordElement.InflectionSet> |
WordElement.getInflectionalVariants()
Convenience method to get all the inflectional forms of the word.
|
| Modifier and Type | Method and Description |
|---|---|
void |
WordElement.addInflectionalVariant(Inflection infl)
Specify that this word has an inflectional variant (e.g.
|
void |
WordElement.addInflectionalVariant(Inflection infl,
String lexicalFeature,
String form)
Add an inflectional variant to this word element.
|
boolean |
WordElement.hasInflectionalVariant(Inflection infl)
Check whether this word has a particular inflectional variant
|
void |
WordElement.setDefaultInflectionalVariant(Inflection variant)
Set the default inflectional variant of a word.
|
Copyright © 2020. All Rights Reserved.