Skip Menu |

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

Report information
The Basics
Id: 73242
Status: resolved
Priority: 0/
Queue: Lingua-EN-Inflect-Phrase

People
Owner: Nobody in particular
Requestors: mattdw [...] gmail.com
Cc:
AdminCc:

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



Subject: Couple of incorrect conversions
Date: Tue, 13 Dec 2011 15:22:50 -0600
To: bug-Lingua-EN-Inflect-Phrase [...] rt.cpan.org
From: Matt Wilson <mattdw [...] gmail.com>
Hello, Noticed these when I got some unexpected schema file names from using Catalyst::Helper::Model::DBIC::Schema. Running Windows 7 Professional x64. I copied the tests from the module documentation, substituting in the column names that came out incorrectly. This is what I tested and what failed: my $plural = Lingua::EN::Inflect::Phrase::to_PL('referal log'); is $plural, 'referal logs'; my $singular = Lingua::EN::Inflect::Phrase::to_S('referal logs'); is $singular, 'referal log'; ***** 1..2 ok 1 not ok 2 # Failed test at C:\Users\mattdw\Desktop\tests\lingua_test.pl line 15. # got: 'referal logs' # expected: 'referal log' # Looks like you failed 1 test of 2. ============================================================== 1..2 ok 1 not ok 2 # Failed test at C:\Users\mattdw\Desktop\tests\lingua_test.pl line 15. # got: 'aliase' # expected: 'alias' # Looks like you failed 1 test of 2.
Subject: Re: [rt.cpan.org #73242] Couple of incorrect conversions
Date: Tue, 13 Dec 2011 17:41:09 -0500
To: bug-Lingua-EN-Inflect-Phrase [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] cpan.org>
Thanks, I'll have a fix in a couple of days. Can you give me the full source of lingua_test.pl? You had an 'alias' test in there?
Subject: Re: [rt.cpan.org #73242] Couple of incorrect conversions
Date: Tue, 13 Dec 2011 16:49:26 -0600
To: bug-Lingua-EN-Inflect-Phrase [...] rt.cpan.org
From: Matt Wilson <mattdw [...] gmail.com>
My apologies, I hit "send" on the email before pasting in the second example with 'alias' (same as the first with 'referal logs', just different text): #! perl use warnings; use strict; use Lingua::EN::Inflect::Phrase; use Test::More tests => 2; my $plural = Lingua::EN::Inflect::Phrase::to_PL('alias'); is $plural, 'aliases'; my $singular = Lingua::EN::Inflect::Phrase::to_S('aliases'); is $singular, 'alias'; 1; Hope that helps..and thanks! --Matt On Tue, Dec 13, 2011 at 4:41 PM, Rafael Kitover via RT < bug-Lingua-EN-Inflect-Phrase@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=73242 > > > Thanks, I'll have a fix in a couple of days. > > Can you give me the full source of lingua_test.pl? You had an 'alias' > test in there? > >
Fixed in 0.11.