Thank you @plumcraft and @tyho!
It is a bit of both. The module developer incorporating voice commands for his module will add a list of commands that he needs. For instance, ‘COUNT UNREAD; HOW MANY EMAILS?’. A dictionary is then generated automatically by the voice command module. The mirror will only understand count, unread, count unread, how many emails, emails (un-important words are ignored).
@strawberry-3-141 and I have both been working on the module, and I would like to take his suggestion of adding regex matching as well.