Q:

Check if a String is a number

I know you can check if a string is an integer by just doing Integer.parseInt("1234");
But what I want is to do is link a textual number to an integer.
i.e. 

"One" == 1
"Two" == 2
"Three" == 3
"Twenty" == 20

Is there some library I can use to do this, or do I have to program this all by hand?  
The reason I want to do this, is that I have an android application with speech recognition.
The user can then count. This number is shown on the screen.
EDIT
After some experimenting, I figured out that the SpeechRecognizer class I use automatically parses numbers to actual numbers...

A:

I am not sure if there is a library for that but here is a good example.

