posted an update —

This particular implementation also takes commands usage into account and brings up the more frequently used commands as first options. Also the engine has the open to memorize extra parameters for certain commands. Please try the command: "open link" and type afterwards a website like www.google.com. Try more than one option and see how it memorizes them, also using the same option more frequently moves it to the top.