public class EnglishConjugator extends java.lang.Object implements Conjugator
Modifier and Type | Field and Description |
---|---|
protected static java.util.Set<java.lang.String> |
doublingVerbs
Set of verbs whose final consonant is doubled in inflected forms.
|
protected static java.lang.String |
doublingVerbsPath
Resource path to list of doubled consonant verbs.
|
protected Map3D<java.lang.String,java.lang.String,java.lang.String,java.lang.String> |
irregularVerbs
Map3D of irregular verbs.
|
protected static java.lang.String |
irregularVerbsPath
Resource path to map of irregular verbs.
|
protected static PatternReplacer |
presentParticiplePattern1
Present participle replacement patterns.
|
protected static PatternReplacer |
presentParticiplePattern2 |
Constructor and Description |
---|
EnglishConjugator()
Create an English conjugator.
|
protected static java.util.Set<java.lang.String> doublingVerbs
protected static final java.lang.String doublingVerbsPath
protected static final PatternReplacer presentParticiplePattern1
protected static final PatternReplacer presentParticiplePattern2
protected Map3D<java.lang.String,java.lang.String,java.lang.String,java.lang.String> irregularVerbs
First key is the infinitive.
Second key is the person.
Third key is the verb tense.
Value is the conjugated verb form.
protected static final java.lang.String irregularVerbsPath
public java.lang.String conjugate(java.lang.String infinitive, VerbTense tense, Person person)
conjugate
in interface Conjugator
infinitive
- The infinitive of the verb to inflect.tense
- The verb tense to generate.person
- The person (1st, 2nd, 3rd) to generate.