-
Notifications
You must be signed in to change notification settings - Fork 23
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
Edge cases that are not working #4
Comments
I was thinking a bit about these edge cases
I feel that we should only handle
Opinions ?
Do we remove the 'a' or not ?. Also is it the same behavior with other numbers and the position of 'a' in the beginning of the sentence or middle impacts parsing?
|
However, I think that this ticket shouldn't be prioritized as we should first accept other languages (#10) to avoid adapting this library too much to the English language. |
Regarding
I think the right wording would be:
Where removing the ‘a’ makes sense. |
Hey @noviluni @Gallaecio The issue mentioned about parsing '1 million' to '1000000'Previously
so to change this to '1000000' we can make few changes to the algorithm. My Approach for this issue1.)According to me, Intuitiona.) '1 million' should be parsed as '1000000'. 2.) I know this needs a more efficient and deeper approach. |
Some edge cases that should be fixed:
On the other side, when having "5 hundred" I think it should return "500". What do you think?
Example:
Please, add a test with each of these strings when fixing it :)
On the other hand, I think there are some currently working cases that should be added to the tests:
Let me know if you have any doubt. 🙂
The text was updated successfully, but these errors were encountered: