topicPhrase(misc)grammaren_us.t[7072]

Explicitly match a miscellaneous word list as a topic.

This might seem redundant with the ordinary topicPhrase that accepts a singleNoun, because singleNoun can match a miscellaneous word list. The difference is that singleNoun only matches a miscWordList with a "badness" value, whereas we match a miscWordList here without any badness. We want to be more tolerant of unrecognized input in topic phrases than in ordinary noun phrases, because it's in the nature of topic phrases to go outside of what's implemented directly in the simulation model. At a grammatical level, we don't want to treat topic phrases that we can resolve to the simulation model any differently than we treat those we can't resolve, so we must add this rule to eliminate the badness that singleNoun associated with a miscWordList match.

Note that we do prefer resolvable noun phrase matches to miscWordList matches, but we handle this preference with the resolver's scoring mechanism rather than with badness.

grammar topicPhrase(misc) :   TopicProd

Superclass Tree   (in declaration order)

topicPhrase(misc)
        TopicProd
                SingleNounProd
                        NounPhraseProd
                                BasicProd
                                        object

Summary of Properties  

Inherited from NounPhraseProd :
filterForCollectives 

Inherited from BasicProd :
firstTokenIndex  isSpecialResponseMatch  lastTokenIndex 

Summary of Methods  

Inherited from TopicProd :
getOrigText  getOrigTokenList  resolveNouns 

Inherited from NounPhraseProd :
filterTruncations  getVerifyKeepers 

Inherited from BasicProd :
canResolveTo  setOrigTokenList 

Properties  

(none)

Methods  

(none)

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