You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of version 0.5.8, the num2words library does not correctly convert
some numbers to words in Arabic. It erroneously appends the Arabic
equivalent of "one" to the translation of 1000 (one thousand), when it
must be implicit.
Expected output:
'ألف و مئتان و أربعة و ثلاثون , ست و خمسون'
0.5.9:
>>> from num2words import num2words
>>> num2words(1234.56, lang="ar")
'واحد ألف و مئتان و أربعة و ثلاثون , ست و خمسون'
This bug has been fixed in version 0.5.13 of the library:
0.5.13:
>>> from num2words import num2words
>>> num2words(1234.56, lang="ar")
'ألف و مئتان و أربعة و ثلاثون , ست و خمسون'
This commit updates the requirements.txt to use the version of the
library that produces the correct output.
opw-3756778
References:
+ savoirfairelinux/num2words#512
0 commit comments