akshaynagpal / w2n

Convert number words (eg. twenty one) to numeric digits (21)
http://w2n.readthedocs.io
MIT License
167 stars 78 forks source link

Generates results even for incorrent inputs #42

Open joelvzach opened 5 years ago

joelvzach commented 5 years ago

On trying w2n.word_to_num("nine-hundred-and-forty-seven-point-2yo") I am getting the result of 947 instead of error message.

akshaynagpal commented 5 years ago

Thanks for pointing this out. I will look into this ASAP. Meanwhile, you're also welcome to fix the error and submit a Pull Request. If it passes all the tests, it will be merged most probably.

joelvzach commented 5 years ago

Hey Akshay!

Yes I would like to attempt fixing this so if you can give me two days time (this weekend) I will try my best to submit a fix. If I do not, however, do assume I could not succeed and proceed with your attempt when time permits.

Cheers