allo-media/text2num

Is there a way to convert ordinals less than 3?

Opened this issue · 3 comments

I cannot convert ordinal less than 3 in Portuguese even setting the ordinal threshold parameter. Is there any way to do that?

Examples:

alpha2digit("primeiro", "pt", ordinal_threshold=0)

Expected = 1º
Result = 'primeiro'

alpha2digit("segundo", "pt", ordinal_threshold=1)

Expected = 2º
Result = 'segundo'

rtxm commented

It looks like there is a bug in the Portuguese version indeed.

This is also an issue in English.
'First', 'Second' and 'Third' do not get interpreted.

rtxm commented

This is also an issue in English. 'First', 'Second' and 'Third' do not get interpreted.

Even with ordinal_threshold=0?