I would like to know if a given input is a number or not a number. For example, if entered '1', then it is a number, 'one', 'three hundred' would also be numbers, but 'cat' would obviously not be a number. Furthermore, I would like for it to recognize that "three hundred" is actually the integer 300.
I figured that machine learning classification would be the best way to do something like this (correct me if I'm wrong), but have no idea how to get started. If someone can point to some steps to take to solve this problem, it would be appreciated.