[I7] Hook for parser clarification prompts

I need to run some code whenever parser clarification prompts pop up, i.e.

The only way I’ve found is this:

The parser clarification internal rule response (D) is "Whom do you want [if the noun is not the player][the noun] [end if]to [parser command so far]?[myrule]".
The parser clarification internal rule response (E) is "What do you want [if the noun is not the player][the noun] [end if]to [parser command so far]?[myrule]".

To say myrule:
    [...]

I’d rather do it more cleanly, but I suppose there isn’t anything else to hook into?

This works:

[code]The Warehouse is a room.

A blue box is in the warehouse. A red box is in the warehouse.

After issuing the response text of a response (called R):
if R is parser clarification internal rule response (D) or R is parser clarification internal rule response (E):
say " (my rule goes here)"[/code]

Nice. That’s going into my toolbox for sure.

That is indeed very elegant. Thanks!