Package com.articulate.sigma.nlg
Class VerbPropertiesSimpleImpl
java.lang.Object
com.articulate.sigma.nlg.VerbPropertiesSimpleImpl
- All Implemented Interfaces:
VerbProperties
A first-blush attempt at implementing the VerbProperties interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.articulate.sigma.nlg.VerbProperties
VerbProperties.Polarity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCaseRolesForGrammarRole(String verb, SVOElement.SVOGrammarPosition grammarRole) Return a list of case roles for the given verb and the given grammar role.getPrepositionForCaseRole(String verb, CaseRole caseRole) Return a list of prepositions for the given verb and the given case role.
-
Constructor Details
-
VerbPropertiesSimpleImpl
public VerbPropertiesSimpleImpl()
-
-
Method Details
-
getCaseRolesForGrammarRole
public List<CaseRole> getCaseRolesForGrammarRole(String verb, SVOElement.SVOGrammarPosition grammarRole) Return a list of case roles for the given verb and the given grammar role. The list consists of the case roles which, for this verb, are most likely to fill the given grammar role. The list will be in order of likelihood, from most likely to less likely. For example ("give", SUBJECT) will return [CaseRole.AGENT]; ("give", DIRECT_OBJECT) will return [CaseRole.PATIENT]; ("give", INDIRECT_OBJECT) will return [CaseRole.DESTINATION].- Specified by:
getCaseRolesForGrammarRolein interfaceVerbProperties- Parameters:
verb- the verb in infinitive formgrammarRole-- Returns:
-
getPrepositionForCaseRole
Return a list of prepositions for the given verb and the given case role. The list consists of the prepositions which, for this verb, are most likely to precede the entity filling the given case role. An empty string means "no preposition". The list will be in order of likelihood, from most likely to less likely. For example ("give", Patient) will return "" because for this verb the Patient role does not take a preposition. But ("give", DESTINATION) will return "to".- Specified by:
getPrepositionForCaseRolein interfaceVerbProperties- Parameters:
verb- the verb in infinitive formcaseRole-- Returns:
- the strings most likely to be used for this verb and case role, where empty string means "no preposition"
-