public enum InterrogativeType extends Enum<InterrogativeType>
An enumeration representing the different types of interrogatives or
questions that SimpleNLG can realise. The interrogative type is recorded in
the Feature.INTERROGATIVE_TYPE feature and applies to clauses.
| Enum Constant and Description |
|---|
HOW
The type of interrogative relating to the manner in which an event
happened.
|
HOW_MANY
This represents a "how many" questions.
|
HOW_PREDICATE
A how question related to a predicative sentence, such as John is fine, which becomes How is John?
|
WHAT_OBJECT
This type of interrogative is a question pertaining to the object of a
phrase.
|
WHAT_SUBJECT
This type of interrogative is a question pertaining to the subject of a
phrase.
|
WHERE
This type of interrogative concerns the object of a verb that is to do
with location.
|
WHO_INDIRECT_OBJECT
This type of interrogative is a question pertaining to the indirect
object of a phrase when the indirect object is a person.
|
WHO_OBJECT
This type of interrogative is a question pertaining to the object of a
phrase when the object is a person.
|
WHO_SUBJECT
This type of interrogative is a question pertaining to the subject of a
phrase when the subject is a person.
|
WHY
The type of interrogative relating to the reason for an event happening.
|
YES_NO
This represents a simple yes/no questions.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getString()
Convenience method to return the String corresponding to the question
word.
|
static boolean |
isIndirectObject(Object type)
A method to determine if the
InterrogativeType is a question
concerning an element with the discourse function of an indirect object. |
static boolean |
isObject(Object type)
A method to determine if the
InterrogativeType is a question
concerning an element with the discourse function of an object. |
static InterrogativeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InterrogativeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InterrogativeType HOW
public static final InterrogativeType HOW_PREDICATE
public static final InterrogativeType WHAT_OBJECT
public static final InterrogativeType WHAT_SUBJECT
public static final InterrogativeType WHERE
public static final InterrogativeType WHO_INDIRECT_OBJECT
public static final InterrogativeType WHO_OBJECT
public static final InterrogativeType WHO_SUBJECT
public static final InterrogativeType WHY
public static final InterrogativeType YES_NO
public static final InterrogativeType HOW_MANY
public static InterrogativeType[] values()
for (InterrogativeType c : InterrogativeType.values()) System.out.println(c);
public static InterrogativeType 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 nullpublic static boolean isObject(Object type)
InterrogativeType is a question
concerning an element with the discourse function of an object.type - the interrogative type to be checkedtrue if the type concerns an object,
false otherwise.public static boolean isIndirectObject(Object type)
InterrogativeType is a question
concerning an element with the discourse function of an indirect object.type - the interrogative type to be checkedtrue if the type concerns an indirect object,
false otherwise.public String getString()
WHO_SUBJCT and WHO_OBJECT both
correspond to String Who)Copyright © 2020. All Rights Reserved.