savoirfairelinux / num2words

Modules to convert numbers to words. 42 --> forty-two
GNU Lesser General Public License v2.1
813 stars 487 forks source link

Num2Words Arabic Number Representation Violates Grammatical Rules for 100 and Its Multiples #557

Open bm-rana opened 7 months ago

bm-rana commented 7 months ago

Expected Behavior

the expected behaviour of the Num2Words is to generate accurate linguistic representations of numbers in the Arabic language (case of two "مثنى"), considering grammatical rules, especially in the context of 100 and its multiples. In case of رفع, the library should convert the number ending with "ان" , and in the نصب case, it should convert the number ending with "ين"

Actual Behavior

The generated output is the conversion of the numbers ending in all cases of mothanna (case of two "مثنى") with "ان" in both the "رفع" case in the "نصب" case.

Steps to reproduce

mrodriguezg1991 commented 7 months ago

Hello, sorry i don't speak the language, but all contributions are appreciated, if you have the time, a PR with the fix is welcome, thanks