LocationalProductionclass
LocationalProduction is a subclass of Production for phrases that involve locational qualifiers, as in “the book on the table”.
Each grammar rule of this type needs to define two special ‘->’ associations in its template:
cont_ is the locational qualifier. This is also just an ordinary noun phrase. This is the “the table” part in “the book on the table”.
prep_ is the preposition production. This should be *or* contain a LocationTypeProduction match, which tells us the type of containment relationship specified by the grammar. *Alternatively*, you can define locType directly on this production. This specifies a LocType object giving the containment relationship.
class
LocationalProduction
:
Production
Superclass Tree (in declaration order)
LocationalProduction
Production
` object`
Subclass Tree
LocationalProduction
disambigPhrase(locational)
indetPluralNounPhrase(locational)
indetPluralOnlyNounPhrase(locational)
indetSingularNounPhrase(locational)
qualifiedPluralNounPhrase(theOnesIn)
qualifiedSingularNounPhrase(anyOneIn)
qualifiedSingularNounPhrase(theOneIn)
Global Objects
(none)
Summary of Properties
` locType
`
Inherited from Production
:
` determiner
nounPhraseRole
npClass
parent
`
Summary of Methods
` visitProd
`
Inherited from Production
:
` addNounListItem
build
findAction
findChild
findParent
getNounPhraseRole
getText
getTokens
grammarInfoForBuild
isChildOf
noteEndOfSentence
visitLiteral
`
Properties
locType
Our location type. This is a LocType object giving the location relationship specified by this locational phrase. For languages that special locational phrases prepositionally, this will be set by the LocationPrepProduction in our sub-tree. For languages that use case inflection to specify the type of relationship, this must be set by the noun phrase sub-tree instead.
Methods
visitProd (cmd, np, prod)
OVERRIDDEN
Visit a production. When we process the locational qualifier phrase, we’ll build out the sub-tree in the context of a new NounPhrase, which we attach as a locational qualifier to the encompassing noun phrase under construction.
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1