public enum DiscourseFunction extends Enum<DiscourseFunction>
An enumeration representing the grammatical function that an element might
take. The discourse function is recorded under the Feature.DISCOURSE_FUNCTION feature and applies to any type of NLGElement.
| Enum Constant and Description |
|---|
AUXILIARY
Auxiliaries are the additional verbs added to a verb phrase to alter the
meaning being described.
|
COMPLEMENT
Complements are additional components that are required to complement the
meaning of a sentence.
|
CONJUNCTION
A conjunction is a word that links items together in a coordinated
phrase.
|
CUE_PHRASE
Cue phrases are added to sentence to indicate document structure or flow.
|
FRONT_MODIFIER
Front modifiers are modifiers that apply to clauses.
|
HEAD
This represents the main item of the phrase.
|
INDIRECT_OBJECT
This is the indirect object of a verb phrase or an additional object that
is affected by the action performed.
|
OBJECT
This is the object of a verb phrase and represents the item that the
action is performed upon.
|
POST_MODIFIER
Post-modifiers, typically adjectives and adverbs, are added after the
head of the phrase.
|
PRE_MODIFIER
Pre-modifiers, typically adjectives and adverbs, appear before the head
of a phrase.
|
SPECIFIER
The specifier, otherwise known as the determiner, is a word that can be
placed before a noun in a noun phrase.
|
SUBJECT
This is the subject of a verb phrase and represents the entity performing
the action.
|
VERB_PHRASE
The verb phrase highlights the part of a clause that forms the verb
phrase.
|
| Modifier and Type | Method and Description |
|---|---|
static DiscourseFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscourseFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscourseFunction AUXILIARY
public static final DiscourseFunction COMPLEMENT
public static final DiscourseFunction CONJUNCTION
public static final DiscourseFunction CUE_PHRASE
public static final DiscourseFunction FRONT_MODIFIER
public static final DiscourseFunction HEAD
public static final DiscourseFunction INDIRECT_OBJECT
public static final DiscourseFunction OBJECT
public static final DiscourseFunction PRE_MODIFIER
public static final DiscourseFunction POST_MODIFIER
public static final DiscourseFunction SPECIFIER
public static final DiscourseFunction SUBJECT
public static final DiscourseFunction VERB_PHRASE
public static DiscourseFunction[] values()
for (DiscourseFunction c : DiscourseFunction.values()) System.out.println(c);
public static DiscourseFunction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2020. All Rights Reserved.