Class VerbPropertiesSimpleImpl

java.lang.Object
com.articulate.sigma.nlg.VerbPropertiesSimpleImpl
All Implemented Interfaces:
VerbProperties

public class VerbPropertiesSimpleImpl extends Object implements VerbProperties
A first-blush attempt at implementing the VerbProperties interface.
  • 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:
      getCaseRolesForGrammarRole in interface VerbProperties
      Parameters:
      verb - the verb in infinitive form
      grammarRole -
      Returns:
    • getPrepositionForCaseRole

      public List<String> getPrepositionForCaseRole(String verb, CaseRole caseRole)
      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:
      getPrepositionForCaseRole in interface VerbProperties
      Parameters:
      verb - the verb in infinitive form
      caseRole -
      Returns:
      the strings most likely to be used for this verb and case role, where empty string means "no preposition"