ResolutionError class | parser.t[5306]

Noun phrase resolution error. This is a special type of parsing error that indicates that the problem is with resolving a noun phrase to game-world objects.

`class ResolutionError : ParseError`

Superclass Tree (in declaration order)

`ResolutionError`
`ParseError`
`Exception`
`object`

Subclass Tree

`ResolutionError`
`ActorResolutionError`
`InsufficientNounsError`
`NoneInLocationError`
`NoneInOwnerError`
`NoneWithContentsError`
`UnmatchedNounError`
`AmbiguousMultiDefiniteError`
`AmbiguousError`
`OrdinalRangeError`
`PronounError`
`AntecedentScopeError`
`NoAntecedentError`
`UnmatchedActorError`

Global Objects

(none)

Summary of Properties

`np txt`

Inherited from `ParseError` :
`allowOnRespell curable errStage`

Inherited from `Exception` :
`errmsg_`

Summary of Methods

`construct rankCorrection`

Inherited from `ParseError` :
`display tryCuring`

Inherited from `Exception` :
`displayException getExceptionMessage showStackTrace`

Properties

`np` | `parser.t[5320]`

the NounPhrase object for the errant phrase, if available

`txt` | `parser.t[5323]`

the text of the errant phrase, if available

Methods

`construct (np)`OVERRIDDEN | `parser.t[5307]`

no description available

`rankCorrection (toks, idx, dict)`OVERRIDDEN | `parser.t[5334]`

For a noun resolution error, our best bet for a spelling correction would be a word associated with a game-world object. Only consider in-scope objects when making the correction, to avoid spurious corrections that give away information on objects the player has yet to encounter. We'll also allow words that are used in non-predicate grammar productions, since we might have a structural noun phrase word (an article, pronoun, etc).

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2