public enum VerbTense extends java.lang.Enum<VerbTense>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
conjugateEnglish(CoreLabel token) |
java.lang.String |
conjugateEnglish(CoreLabel token,
boolean negated) |
java.lang.String |
conjugateEnglish(java.lang.String lemma) |
java.lang.String |
conjugateEnglish(java.lang.String lemma,
boolean negated)
Apply this tense to the given verb.
|
static VerbTense |
of(boolean past,
boolean plural,
boolean participle,
int person)
Get the correct verb tense for the verb tense's features.
|
static VerbTense |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VerbTense[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerbTense INFINITIVE
public static final VerbTense SINGULAR_PRESENT_FIRST_PERSON
public static final VerbTense SINGULAR_PRESENT_SECOND_PERSON
public static final VerbTense SINGULAR_PRESENT_THIRD_PERSON
public static final VerbTense PRESENT_PLURAL
public static final VerbTense PRESENT_PARTICIPLE
public static final VerbTense SINGULAR_PAST_FIRST_PERSON
public static final VerbTense SINGULAR_PAST_SECOND_PERSON
public static final VerbTense SINGULAR_PAST_THIRD_PERSON
public static final VerbTense PAST_PLURAL
public static final VerbTense PAST
public static final VerbTense PAST_PARTICIPLE
public static VerbTense[] values()
for (VerbTense c : VerbTense.values()) System.out.println(c);
public static VerbTense valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static VerbTense of(boolean past, boolean plural, boolean participle, int person)
past
- If true, this is a past-tense verb.plural
- If true, this is a plural verb.participle
- If true, this is a participle verb.person
- 1st, 2nd, or 3rd person: corresponds to 1,2, or 3 for this argument.public java.lang.String conjugateEnglish(java.lang.String lemma, boolean negated)
lemma
- The verb to conjugate.negated
- If true, this verb is negated.public java.lang.String conjugateEnglish(java.lang.String lemma)
conjugateEnglish(String, boolean)
public java.lang.String conjugateEnglish(CoreLabel token, boolean negated)
conjugateEnglish(String, boolean)
public java.lang.String conjugateEnglish(CoreLabel token)
conjugateEnglish(String, boolean)