savoirfairelinux / num2words

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

en_US ordinal invalid verbalization #147

Open JDongian opened 6 years ago

JDongian commented 6 years ago

Expected Behaviour

101st should be converted to hundred-and-first https://www.thefreedictionary.com/hundred-and-first (forms such as one hundred and first do not exist, although they may appear in text corpora)

Actual Behaviour

There is an extra one verbalized.

Steps to reproduce

from num2words import num2words
num2words(101, ordinal=True) == 'one hundred and first'
khuang0312 commented 4 years ago

May I take a stab at solving this issue?

mrodriguezg1991 commented 2 years ago

May I take a stab at solving this issue?

I am not an English native speaker, but I have found in multiple sites that both ways are correct https://simple.wikipedia.org/wiki/Names_for_ordinal_numbers, let me know what you think