simplenlg.features.DiscourseFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleNLG Show documentation
Show all versions of SimpleNLG Show documentation
Java API for Natural Language Generation
The newest version!
/*
* The contents of this file are subject to the Mozilla Public License
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* https://www.mozilla.org/en-US/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is "Simplenlg".
*
* The Initial Developer of the Original Code is Ehud Reiter, Albert Gatt and Dave Westwater.
* Portions created by Ehud Reiter, Albert Gatt and Dave Westwater are Copyright (C) 2010-11 The University of Aberdeen. All Rights Reserved.
*
* Contributor(s): Ehud Reiter, Albert Gatt, Dave Westwater, Roman Kutlak, Margaret Mitchell, and Saad Mahamood.
*/
package simplenlg.features;
/**
*
* An enumeration representing the grammatical function that an element might
* take. The discourse function is recorded under the {@code
* Feature.DISCOURSE_FUNCTION} feature and applies to any type of {@code
* NLGElement}.
*
*
* @author A. Gatt and D. Westwater, University of Aberdeen.
* @version 4.0
*/
public enum DiscourseFunction {
/**
* Auxiliaries are the additional verbs added to a verb phrase to alter the
* meaning being described. For example, will can be added as an
* auxiliary to a verb phrase to represent the future tense of the verb,
* John will kiss Mary.
*/
AUXILIARY,
/**
* Complements are additional components that are required to complement the
* meaning of a sentence. For example,
* put the bread on the table requires the complement
* on the table to make the clause meaningful.
*/
COMPLEMENT,
/**
* A conjunction is a word that links items together in a coordinated
* phrase. The most common conjunctions are and and but.
*/
CONJUNCTION,
/**
* Cue phrases are added to sentence to indicate document structure or flow.
* They normally do not add any semantic information to the phrase. For
* example,
* Firstly, let me just say it is an honour to be here.
* Incidentally, John kissed Mary last night.
*/
CUE_PHRASE,
/**
* Front modifiers are modifiers that apply to clauses. They are placed in
* the syntactical structure after the cue phrase but before the subject.
* For example, However, last night John kissed Mary.
*/
FRONT_MODIFIER,
/**
* This represents the main item of the phrase. For verb phrases, the head
* will be the main verb. For noun phrases, the head will be the subject
* noun. For adjective, adverb and prepositional phrases, the head will be
* the adjective, adverb and preposition respectively.
*/
HEAD,
/**
* This is the indirect object of a verb phrase or an additional object that
* is affected by the action performed. This is typically the recipient of
* give. For example, Mary is the indirect object in the phrase
* John gives Mary the flower.
*/
INDIRECT_OBJECT,
/**
* This is the object of a verb phrase and represents the item that the
* action is performed upon. For example, the flower is the object in the
* phrase John gives Mary the flower.
*/
OBJECT,
/**
* Pre-modifiers, typically adjectives and adverbs, appear before the head
* of a phrase. They can apply to noun phrases and verb phrases. For
* example, the beautiful woman,
* the ferocious dog.
*/
PRE_MODIFIER,
/**
* Post-modifiers, typically adjectives and adverbs, are added after the
* head of the phrase. For example, John walked quickly.
*/
POST_MODIFIER,
/**
* The specifier, otherwise known as the determiner, is a word that can be
* placed before a noun in a noun phrase. Example specifiers include:
* the, some, a and an as well as the
* personal pronouns such as my, your, their.
*/
SPECIFIER,
/**
* This is the subject of a verb phrase and represents the entity performing
* the action. For example, John is the subject in the phrase
* John gives Mary the flower.
*/
SUBJECT,
/**
* The verb phrase highlights the part of a clause that forms the verb
* phrase. Verb phrases can be formed of a single verb or from a verb with a
* particle, such as kiss, talk, bark,
* fall down, pick up.
*/
VERB_PHRASE;
}