BasicPossessiveProdclass | parser.t[2770] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
The possessive production object poss_ must define the method getOrigMainText() to return the text of its noun phrase in a format suitable for disambiguation prompts or error messages. In English, for example, this means that the getOrigMainText() must omit the apostrophe-S suffix if present.
class
BasicPossessiveProd : DefiniteNounProd
BasicPossessiveProd
DefiniteNounProd
NounPhraseProd
BasicProd
object
AmbigResponseKeeper
object
BasicPossessiveProd
ButPossessiveProd
exceptNounPhrase(singlePossessive)
DisambigPossessiveProd
disambigListItem(possessive)
PossessiveNounProd
qualifiedSingularNounPhrase(possessive)
PossessivePluralProd
explicitDetPluralNounPhrase(possessive)
explicitDetPluralOnlyNounPhrase(possessive)
Inherited from NounPhraseProd
:
filterForCollectives
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Inherited from AmbigResponseKeeper
:
ambigResponses_
construct
resolvePossessive
selectWithPossessive
Inherited from DefiniteNounProd
:
reduceDefinite
resolveDefinite
resolveNouns
Inherited from NounPhraseProd
:
filterTruncations
getVerifyKeepers
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Inherited from AmbigResponseKeeper
:
addAmbigResponse
getAmbigResponses
npKeeper | parser.t[2979] |
construct ( ) | parser.t[2779] |
resolvePossessive (resolver, results, num) | parser.t[2795] |
If we fail, we return nil. Otherwise, we return a list of the tentatively resolved objects. The caller can further resolve this list as needed.
selectWithPossessive (resolver, results, lst, lstOrigText, num) | parser.t[2830] |
'num' is the number of objects we want to select. If the noun phrase being qualified is singular, this will be 1; if it's plural, this will be nil, to indicate that there's no specific target quantity; if the phrase is something like "bob's five books," the the number will be the qualifying quantity (5, in this case).