text2num
text2num copied to clipboard
Is there a way to convert ordinals less than 3?
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'
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.
This is also an issue in English. 'First', 'Second' and 'Third' do not get interpreted.
Even with ordinal_threshold=0
?