public class NoopInflector extends java.lang.Object implements Inflector
| Modifier and Type | Field and Description |
|---|---|
protected Conjugator |
noopConjugator
Noop conjugator.
|
protected Pluralizer |
noopPluralizer
Noop pluralizer.
|
| Constructor and Description |
|---|
NoopInflector() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
conjugate(java.lang.String infinitive,
VerbTense tense,
Person person)
Conjugate a verb from its infinitive, tense, and person.
|
java.lang.String |
pluralize(java.lang.String nounOrPronoun)
Pluralize a noun or pronoun.
|
java.lang.String |
pluralize(java.lang.String nounOrPronoun,
int number)
Pluralize a noun or pronoun.
|
protected Conjugator noopConjugator
protected Pluralizer noopPluralizer
public java.lang.String conjugate(java.lang.String infinitive,
VerbTense tense,
Person person)
conjugate in interface Conjugatorinfinitive - The infinitive of the verb to inflect.tense - The verb tense to generate.person - The person (1st, 2nd, 3rd) to generate.public java.lang.String pluralize(java.lang.String nounOrPronoun)
pluralize in interface PluralizernounOrPronoun - The singular form of the noun or pronoun.public java.lang.String pluralize(java.lang.String nounOrPronoun,
int number)
pluralize in interface PluralizernounOrPronoun - The singular form of the noun or pronoun.number - The number for the noun or pronoun.