I am trying to convert numerical values written as words into integers. For example,
iPhone has two hundred and thirty thousand seven hundred and eighty three apps
would become
iPhone has 230783 apps
Is there any library or function that does this?
There are lots of pages discussing the conversion from numbers to words. Not so many for the reverse direction. The best I could find was some pseudo-code on Ask Yahoo. See http://answers.yahoo.com/question/index?qid=20090216103754AAONnDz for a nice algorithm: