Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002010Core InformKinds and type checkingpublic2017-04-08 19:182017-04-08 23:26
Assigned To 
Platformx86-64OSWindowsOS Version10
Product Version6M62 
Target VersionFixed in Version 
Summary0002010: Disambiguation breaks when considering objects only because of their kind
DescriptionThe code below ought to produce:

    >x garment
    Which do you mean, the dashing hat or the expensive purse?

    >take garment
    Which do you mean, the dashing hat or the expensive purse?

But instead we get:

    >x garment
    You can't use multiple objects with that verb.

    >take garment
    What do you want to take those things from? though we were speaking in the plural about everything matching "garment".

The issue seems to arise specifically when the parser has to disambiguate between several objects, one of which is being considered *only* because of the name of its kind. We can bypass the problem by breaking any of these conditions:

1) by preventing disambiguation, e.g. by only having the player wear one valid "garment" object; or

2) by preventing matching the kind name in the first place, e.g. by removing/renaming the "garment hook" kind or making it privately-named; or

3) by providing another way to match "garment" to the problematic hook, e.g. with a rule like 'Understand "garment" as the problematic hook.'

Notice that the problematic hook doesn't even have to be visible to the player for this to happen.
Minimal Source Text To Reproduce
The Foyer of Mystery is a room.

The player wears a dashing hat. Understand "garment" as the dashing hat.
The player wears an expensive purse. Understand "garment" as the expensive purse.

A garment hook is a kind of thing. The problematic hook is a garment hook.

Test me with "x garment / take garment".
TagsNo tags attached.
Effect(serious/mild) Game compiles but misbehaves
Attached Files

- Relationships
duplicate of 0001920confirmed all words in a multi-word plural name of a kind, even singular ones, are pluralized in game's dict 

-  Notes
zarf (developer)
2017-04-08 21:51

See [^] . Inform's current behavior is to define "garment hooks" as the plural of "garment hook" (which is sensible) but also to mark both words "garment", "hooks" as plural in the dictionary.

You can work around this by saying

The plural of garment hook is garment-hooks.

(But then you lose the plural flag on "hooks", so this isn't perfect.)

- Issue History
Date Modified Username Field Change
2017-04-08 19:18 prevtenet New Issue
2017-04-08 21:51 zarf Note Added: 0004675
2017-04-08 21:51 zarf Relationship added duplicate of 0001920
2017-04-08 23:26 curiousdannii Status new => closed
2017-04-08 23:26 curiousdannii Resolution open => duplicate

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker