Re: Turning numbers into words

2014-07-12 Thread Neil Bowers
> > Excellent! Write that and I'll stick it into > Lingua::EN::Numbers::Replace::Digits::in::Sentences::or::Phrases::with::Actual::Words.[1] > :-) You've given me another idea for a module! Acme::CPANAuthors::SmartAlecs

Re: Turning numbers into words

2014-07-12 Thread Neil Bowers
> So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) and "22" > into "twenty-second" (ditto), and "3/4" into "three quarters" > (Lingua::EN::Fractions) and even "1994" into "nineteen ninety-four" > (Lingua::EN::Numbers::Years). What I actually _want_, though, is to turn "In >

Re: Turning numbers into words

2014-07-11 Thread Buddy Burden
Neil, How about something along the lines of Lingua::EN::WordifyNumerics? Hmmm ... you think that's better than Daniel's suggestion of "Lingua::EN::Numbers::Combined"? Thats what I'm leaning towards ATM. Considering just the name: Lingua::EN::Numbers::Combined I might think: * Lingua

Re: Turning numbers into words

2014-07-11 Thread Buddy Burden
David, You have a hard problem to solve here. "In 814 Charlemagne died" -> Eight fourteen "In the year of our lord 814 ..." -> Eight hundred and fourteen "In 814 cases out of 1000 the patient recovered" -> Eight hundred and fourteen Oh, it can never be perfect, that's for sure. My

Re: Turning numbers into words

2014-07-11 Thread Paul Bennett
On Jul 10, 2014 12:15 AM, "Buddy Burden" wrote: > > What I actually _want_, though, is to turn "In 1994, on the 22nd of February, 3/4 of the 36 members were present" into "In nineteen ninety-four, on the twenty-second of February, three quarters of the thirty-six members were present". Radical id

Re: Turning numbers into words

2014-07-11 Thread Karen Etheridge
On Fri, Jul 11, 2014 at 03:22:57PM +0100, Neil Bowers wrote: > This has given me an idea for another module, Lingua::EN::Numbers::WithUnits, > or a new function in Lingua::EN::Numbers :-) > > 5oz becomes "five ounces" > 8kgs becomes "eight kilograms" I'd start with Lingua::EN::Units, and have th

Re: Turning numbers into words

2014-07-11 Thread Neil Bowers
>> How about something along the lines of Lingua::EN::WordifyNumerics? > > Hmmm ... you think that's better than Daniel's suggestion of > "Lingua::EN::Numbers::Combined"? Thats what I'm leaning towards ATM. Considering just the name: Lingua::EN::Numbers::Combined I might think: Lingu

Re: Turning numbers into words

2014-07-11 Thread David Cantrell
On Thu, Jul 10, 2014 at 05:36:09PM -0400, Daniel Staal wrote: > My suggestions: > > Lingua::EN::Numbers::All > Lingua::EN::Numbers::Combined > > I'd lean towards ::Combined and allowing the user to specify what > sub-functions they want to be using. (Base numbers and fractions? Years > and b

Re: Turning numbers into words

2014-07-10 Thread Buddy Burden
Neil, So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) and "22" into "twenty-second" (ditto), and "3/4" into "three quarters" (Lingua::EN::Fractions) and even "1994" into "nineteen ninety-four" (Lingua::EN::Numbers::Years). What I actually _want_, though, is to turn "In 199

Re: Turning numbers into words

2014-07-10 Thread Buddy Burden
Daniel, Plus I thought it would be useful to solicit opinions on naming. :-) My suggestions: Lingua::EN::Numbers::All Lingua::EN::Numbers::Combined I'd lean towards ::Combined and allowing the user to specify what sub-functions they want to be using. (Base numbers and fractions? Years and

Re: Turning numbers into words

2014-07-10 Thread Daniel Staal
--As of July 10, 2014 1:32:23 PM -0700, Buddy Burden is alleged to have said: ether, So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) and "22" into "twenty-second" (ditto), and "3/4" into "three quarters" (Lingua::EN::Fractions) and even "1994" into "nineteen ninety-four" (

Re: Turning numbers into words

2014-07-10 Thread Buddy Burden
ether, So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) and "22" into "twenty-second" (ditto), and "3/4" into "three quarters" (Lingua::EN::Fractions) and even "1994" into "nineteen ninety-four" (Lingua::EN::Numbers::Years). What I actually _want_, though, is to turn "In 1994

Re: Turning numbers into words

2014-07-10 Thread Karen Etheridge
On Wed, Jul 09, 2014 at 09:14:47PM -0700, Buddy Burden wrote: > So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) > and "22" into "twenty-second" (ditto), and "3/4" into "three > quarters" (Lingua::EN::Fractions) and even "1994" into "nineteen > ninety-four" (Lingua::EN::Numbers::

Turning numbers into words

2014-07-09 Thread Buddy Burden
Guys, So, I know how to turn "36" into "thirty-six" (Lingua::EN::Numbers) and "22" into "twenty-second" (ditto), and "3/4" into "three quarters" (Lingua::EN::Fractions) and even "1994" into "nineteen ninety-four" (Lingua::EN::Numbers::Years). What I actually _want_, though, is to turn "In 19