A new extension is available at Github. This adds a “subcommand” property to objects, exposing the snippet which matched it. So if I >TAKE WAND, then the subcommand of the rusty iron rod is “wand”; if I >TAKE RUSTY IRON ROD, then it’s “rusty iron rod”.
This has been tested with 6L38, and should be portable to other ones by re-copy-pasting the I6 sections. The parts I modified are marked “===NEW===” to be easily moved around.