version 1/110101 by Edward Griffiths
Section 2 -- Wielding
[When the name of an inventory item is entered at the command prompt, we try to find the best fit with available use options that the current page offers. In the case of magic words, a failure needs to be described as "You don't have that." to prevent the user from accidentally tripping upon the right word in the wrong context.]
Wielding is an action applying to one visible thing.
Understand "[an inventory item]" as wielding.
Understand "[any magic word]" as wielding.
Carry out wielding:
repeat with the possibility running through uses offered by the current page:
if the possibility is valid and the possibility uses the noun:
turn to the destination of the possibility;
the rule succeeds;
if the noun is a magic word:
say "You don't have that.";
say "You can't use that here."