Skip Menu |

This queue is for tickets about the Lingua-EN-Numbers CPAN distribution.

Report information
The Basics
Id: 102177
Status: resolved
Priority: 0/
Queue: Lingua-EN-Numbers

People
Owner: NEILB [...] cpan.org
Requestors: drl [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.01



Subject: Odd construction
Date: Tue, 17 Feb 2015 12:26:48 -0600
To: <bug-Lingua-EN-Numbers [...] rt.cpan.org>
From: drl <drl [...] pobox.com>
Hi. Thanks for taking the time to design and code this module. It mostly worked as expected. One place where it didn't seem to work is in something like: perl -M"Lingua::EN::Numbers qw(num2en num2en_ordinal)" -n -e 'chomp; print " Cardinal for $_: ",num2en($_),"\n"; print " Ordinal for $_: ", num2en_ordinal($_),"\n";' file for an input: 1000000000000000000000000000000000000 which produces: Cardinal for 1000000000000000000000000000000000000: one times ten to the thirty-sixth Ordinal for 1000000000000000000000000000000000000: one times ten to the thirty-sixthth and I can't easily pronounce thirty-sixthth :) I don't really know if that would be correct English or not, but it looks really strange. I have no suggestions, other than leaving off the th to get the same as the cardinal. Best wishes ... cheers, drl (Dennis Lienke)
Thanks. For now I've put in a specific check for this, to ensure we don't get double "th" at the end of the generated ordinal. And added a test to ensure that this stays handled. Cheers, Neil