-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index error when string contains digits #3
Comments
Had a look at doing this myself - looks like the main challenge is adapting your definition of words to split things like 22million. Then we have split_words = number_sentence.split() To get it back into a flat list of words |
Thanks for pointing this issue @haydenc . Will look into this in the next version release. Also, you are most welcome to contribute and resolve this issue. |
I think the most useful scenario for this library would be the one I'm trying to use it for - parsing user inputted data, so it should handle situations where the user has entered digits.
e.g. word_to_num("twenty million") == word_to_num("20 million")
The text was updated successfully, but these errors were encountered: