Package com.articulate.sigma.nlg
Class SVOGrammar
java.lang.Object
com.articulate.sigma.nlg.SVOGrammar
Handles properties of traditional Subject-Verb-Object grammar, allowing for both default cases and exceptions for
specific verbs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCaseRolesForGrammarPosition(String verb, SVOElement.SVOGrammarPosition grammarRole) Return the case roles most appropriate for a given grammar role and a verb.
-
Constructor Details
-
SVOGrammar
public SVOGrammar()
-
-
Method Details
-
getCaseRolesForGrammarPosition
public static List<CaseRole> getCaseRolesForGrammarPosition(String verb, SVOElement.SVOGrammarPosition grammarRole) Return the case roles most appropriate for a given grammar role and a verb. Returns default values if there are no special rules for the given verb.- Parameters:
verb-grammarRole-- Returns:
-