I am working on a chatbot using some natural language. I want to ask something like "how many would you like" and interpret their response.
If they respond back with "two" I need to interpret that as 2
If they respond back with "six hundred and forty two" I need to interpret it as 642
Does PHP have any built-in features for this like they do with dates (strotime)?