Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Wheres the Verb?

0
Posted

Wheres the Verb?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.