-
Notifications
You must be signed in to change notification settings - Fork 48
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
does not convert simple numbers in English sentences #31
Comments
We cannot easily identify between a number and a pronoun when I'm wondering: maybe we should do that for all single digit numbers, shouldn't we? |
I would advise against having all small numbers left in text form, let the user decide how he wants the conversion done. Perhaps via a flag, eg. CMS, could follow the guidelines of the Chicago Manual of Style, https://getitwriteonline.com/articles/using-numbers/. Its absence would have all numbers converted to digits. |
@rtxm commented on May 7, 2020, 1:12 PM GMT+4:30:
That's even more "buggy" than this current predicament with |
See #42 |
Hi,
I am using python 3.7.
text_to_num.alpha2digit("she is one foot taller than me.", "en")
returns 'she is one foot taller than me.', so 'one' is not converted.
if I change it slightly to:
text_to_num.alpha2digit("she is two feet taller than me.", "en")
then it returns 'she is 2 feet taller than me.'
So, a simple conversion does not happen in this case and I don't know why?
thanks!
The text was updated successfully, but these errors were encountered: