BasicPossessiveProdclass | parser.t[2647] |
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
(none)
Inherited from
Inherited from
Inherited from
Inherited from
Inherited from
Inherited from BasicPossessiveProd
DefiniteNounProd
NounPhraseProd
BasicProd
object
AmbigResponseKeeper
object
BasicPossessiveProd
ButPossessiveProd
exceptNounPhrase(singlePossessive)
DisambigPossessiveProd
disambigListItem(possessive)
PossessiveNounProd
qualifiedSingularNounPhrase(possessive)
PossessivePluralProd
explicitDetPluralNounPhrase(possessive)
explicitDetPluralOnlyNounPhrase(possessive)
NounPhraseProd
:
filterForCollectives
AmbigResponseKeeper
:
ambigResponses_
construct
resolvePossessive
selectWithPossessive
DefiniteNounProd
:
reduceDefinite
resolveDefinite
resolveNouns
NounPhraseProd
:
filterTruncations
getVerifyKeepers
BasicProd
:
filterPossRank
getOrigText
getOrigTokenList
AmbigResponseKeeper
:
addAmbigResponse
getAmbigResponses
npKeeper | parser.t[2863] |
construct ( ) | parser.t[2656] |
resolvePossessive (resolver, results, num) | parser.t[2672] |
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[2709] |
'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).