Added a command called:
: set_sentence "your replacement sentence here";
This will change the current parse sentence instantly.
Note that this command does not registed as a command that does work, so using it will not tamper with downstream system handlers for particular commands.
e.g.
If I place this at the top of the on_command {} block, then whatever I type, the save dialog will be displayed.
: set_sentence "save";