| Description |
Handles verb conjugation based on tense, person, number
for simple, passive, progressive, and perfect forms.
An example:
RiConjugator rc = new RiConjugator(this);
rc.setNumber("plural");
rc.setPerson("2nd");
rc.setTense("past");
rc.setPassive(true);
rc.setPerfect(true);
rc.setProgressive(false);
String c = rc.conjugate("announce");
Note: this implementation is based closely on rules found in the MorphG package,
further described here:
Minnen, G., Carroll, J., and Pearce, D. (2001). Applied Morphological Processing of English.
Natural Language Engineering 7(3): 207--223. |
| Methods |
| conjugate() |
|
A convenience method to set number, person, & tense, then conjugate, all in one call
|
| conjugateAll() |
|
Returns all unique possible conjugations of the specified verb
|
| getNumber() |
|
Returns a String representing the current number
from one of (singular, plural)
|
| getPerson() |
|
Returns a String representing the current person
from one of (first, second, third)
|
| getTense() |
|
Returns a String representing the current tense
from one of (past, present, future)
|
| getVerb() |
|
Returns the current verb
|
| isPassive() |
|
Returns whether the conjugation will use passive tense
|
| isPerfect() |
|
Returns whether the conjugation will use perfect tense
|
| isProgressive() |
|
Returns whether the conjugation will use progressive tense
|
| setNumber() |
|
Sets the number from one of (singular, plural)
|
| setPassive() |
|
Sets whether the conjugation should use passive tense
|
| setPerfect() |
|
Sets whether the conjugation should use perfect tense
|
| setPerson() |
|
Sets the number from one of (first, second, third)
|
| setProgressive() |
|
Sets whether the conjugation should use progressive tense
|
| setTense() |
|
Sets the number from one of (past, present, future)
|
| setVerb() |
|
Sets the verb to be conjugated
|
| toString() |
|
|
|