|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.corpuslinguistics.inflector.conjugator.EnglishConjugator
public class EnglishConjugator
English language conjugator.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
EnglishConjugator()
Create an English conjugator. |
|
| Method Summary | |
|---|---|
java.lang.String |
conjugate(java.lang.String infinitive,
VerbTense tense,
Person person)
Conjugate a verb from its lemma (infinitive), tense, and person. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public EnglishConjugator()
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||