TopicPhrase class | parser.t[2961], english.t[2039]

TopicPhrase is a special kind of NounPhrase for topics (ASK ABOUT, TELL ABOUT, TALK ABOUT, LOOK UP, etc). These phrases aren't resolved to game-world objects the way ordinary noun phrases are, but instead are resolved to conversation topic objects.

Modified in english.t[2039]:
Modifications to TopicPhrase to make it work better with the English-specific part of the library.

`class TopicPhrase : NounPhrase`

Superclass Tree (in declaration order)

`TopicPhrase`
`NounPhrase`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

``

Inherited from `NounPhrase` :
`contPrep contQual coreProd determiner disambigNameList errName errNameProd exclusions locQual locType matches objs ordinal parent possQual prod pronoun quantifier role tokens`

Summary of Methods

`matchNameScope matchVocab selectObjects`

Inherited from `NounPhrase` :
`addContents addExclusionItem addLiteral addLocation addMatches addOrdinal addPossessive addQuantifier ambigError applyContQual applyDisambig applyExclusion applyLocational applyPossessive buildObjList clone construct contains disambiguate expandErrName isAllEquivalent isMultiple matchVocabPoss resolveAll resolveReflexives`

Properties

(none)

Methods

`matchNameScope (cmd, scope)`OVERRIDDEN | `parser.t[3076], english.t[2040]`

expand the error text to include the possessive qualifier

`matchVocab (cmd)`OVERRIDDEN | `parser.t[2969]`

Get the list of objects matching the vocabulary words in our noun phrase. Populates our 'matches' property with a vector of matching objects. This doesn't look at any of our qualifiers, or attempt to disambiguate contextually; it simply finds everything in scope that the noun phrase could refer to.

`selectObjects (cmd)`OVERRIDDEN | `parser.t[3100]`

return the list

Adv3Lite Library Reference Manual
Generated on 02/05/2024 from adv3Lite version 2.0