PronounProdclass

parser.t[1398]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

Basic class for pronoun phrases. The specific pronouns are language-dependent; each instance should define its pronounType property to an appropriate PronounXxx constant.

class PronounProd :   NounPhraseProd

Superclass Tree   (in declaration order)

PronounProd
NounPhraseProd
BasicProd
`                         object`

Subclass Tree  

PronounProd
HerProd
completeNounPhraseWithoutAll(her)
HimProd
completeNounPhraseWithoutAll(him)
ItProd
completeNounPhraseWithoutAll(it)
MeProd
completeNounPhraseWithoutAll(me)
PossessivePronounAdjProd
HerAdjProd
possessiveAdjPhrase(her)
HisAdjProd
possessiveAdjPhrase(his)
ItsAdjProd
possessiveAdjPhrase(its)
MyAdjProd
possessiveAdjPhrase(my)
TheirAdjProd
possessiveAdjPhrase(their)
YourAdjProd
possessiveAdjPhrase(your)
PossessivePronounNounProd
HersNounProd
possessiveNounPhrase(hers)
HisNounProd
possessiveNounPhrase(his)
ItsNounProd
possessiveNounPhrase(its)
MineNounProd
possessiveNounPhrase(mine)
TheirsNounProd
possessiveNounPhrase(theirs)
YoursNounProd
possessiveNounPhrase(yours)
ReflexivePronounProd
HerselfProd
completeNounPhraseWithoutAll(herself)
HimselfProd
completeNounPhraseWithoutAll(himself)
ItselfProd
completeNounPhraseWithoutAll(itself)
ThemselvesProd
completeNounPhraseWithoutAll(themselves)
ThemProd
completeNounPhraseWithoutAll(them)
YouProd
completeNounPhraseWithoutAll(yourself)

Global Objects  

(none)

Summary of Properties  

isPlural isPossessive pronounType

Inherited from NounPhraseProd :
filterForCollectives

Inherited from BasicProd :
firstTokenIndex isSpecialResponseMatch lastTokenIndex

Summary of Methods  

checkAnaphoricBinding resolveNouns

Inherited from NounPhraseProd :
filterTruncations getVerifyKeepers

Inherited from BasicProd :
canResolveTo getOrigText getOrigTokenList setOrigTokenList

Properties  

isPlural

parser.t[1481]

Is this pronoun a singular or a plural? A pronoun like “it” or “he” is singular, because it refers to a single antecedent; “them” is plural. Language modules that define their own custom pronoun subclasses should override this as needed.

isPossessive

parser.t[1473]

is this a possessive usage?

pronounType

parser.t[1470]

our pronoun specifier - this must be set in each rule instance to one of the PronounXxx constants to specify which pronoun to use when resolving the pronoun phrase

Methods  

checkAnaphoricBinding (resolver, results)

parser.t[1492]

Check for an anaphoric binding. Returns a list (which is allowed to be empty) if this can refer back to an earlier noun phrase in the same command, nil if not. By default, we consider pronouns to be non-anaphoric, meaning they refer to something from a previous sentence, not something in this same sentence. In most languages, pronouns don’t refer to objects in other noun phrases within the same predicate unless they’re reflexive.

resolveNouns (resolver, results)

parser.t[1399]

no description available

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3