Wheres the Verb?
Once inside the language-specific plugin, things might happen in a different order depending on the language, but we’ll keep focusing on the English case for now. The English parser starts by finding the verb. Currently it does this by splitting the input string on spaces, and taking the first word (i.e. everything up to the first space) as the verb. In our example, “trans” is our verb, and [“hello”, “world”, “to”, “ja”] is the rest of our sentence. (Note: this simplistic way of getting the verb currently limits us to having only single-word command names. It needs to be changed to support multi-word commands. We also need to consider whether we want to support the case of the user entering the object first and the verb afterward.