story.scheherazade.verbalizer
Class VerbalizeNoun

java.lang.Object
  extended by story.scheherazade.verbalizer.VerbalizeNoun
All Implemented Interfaces:
DiscourseCommand, DiscourseExecutable

public class VerbalizeNoun
extends java.lang.Object
implements DiscourseCommand


Constructor Summary
VerbalizeNoun(NamedNoun hypotheticalNoun)
          Constructor for a hypothetical noun, one that is divorced from the facts in the actual story.
VerbalizeNoun(NamedNoun hypotheticalNoun, NounPlurality plurality)
          Constructor for verbalizing as a noun TYPE (e.g., groups of grapes) by invoking the noun plan.
VerbalizeNoun(NounName nounName, SemanticRole role)
          Constructor for a defined noun.
 
Method Summary
 Verbalization execute(StoryInterpreter story, Style style, VerbalizerState state)
           
static DiscoursePlan getResetPronounPlan()
          Prepare Verbalizer commands that will cause the next few nouns to be introduced without pronoun substition
 void intern()
           
 java.lang.StringBuffer render()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerbalizeNoun

public VerbalizeNoun(NounName nounName,
                     SemanticRole role)
              throws Scheherexception
Constructor for a defined noun.

Parameters:
nounName - The name of the noun.
role - The semantic role that the noun serves in the current verbalization. Pass null if unknown.
Throws:
Scheherexception

VerbalizeNoun

public VerbalizeNoun(NamedNoun hypotheticalNoun)
              throws Scheherexception
Constructor for a hypothetical noun, one that is divorced from the facts in the actual story.

Throws:
Scheherexception

VerbalizeNoun

public VerbalizeNoun(NamedNoun hypotheticalNoun,
                     NounPlurality plurality)
              throws Scheherexception
Constructor for verbalizing as a noun TYPE (e.g., groups of grapes) by invoking the noun plan. Indicate plurality.

Throws:
Scheherexception
Method Detail

render

public java.lang.StringBuffer render()
Specified by:
render in interface DiscourseCommand
Specified by:
render in interface DiscourseExecutable

execute

public Verbalization execute(StoryInterpreter story,
                             Style style,
                             VerbalizerState state)
                      throws Scheherexception
Specified by:
execute in interface DiscourseCommand
Throws:
Scheherexception

getResetPronounPlan

public static DiscoursePlan getResetPronounPlan()
                                         throws Scheherexception
Prepare Verbalizer commands that will cause the next few nouns to be introduced without pronoun substition

Throws:
Scheherexception

intern

public void intern()
Specified by:
intern in interface DiscourseCommand
Specified by:
intern in interface DiscourseExecutable


Copyright © 2011 David K. Elson. All Rights Reserved.