Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: to_S("first release") != "first releases"
    use Lingua::EN::Inflect::Phrase qw(to_S);  print to_S("first release");

This should be "first release" instead it is "first releases".  A bisect says 817ab8e2e290f1a97ba6179fd850e3ac5b56b2d8 is at fault.

The issue appears to be that "first" is being interpreted as a number by Lingua::EN::Number's regex.  A quick hack is to special case "first" but "second", "third", etc... are all singular and the bug appears for "second release" as well.

This is causing a bug in BackPAN::Index because of DBIx::Class::Schema::Loader inflecting a relationship incorrectly.  https://rt.cpan.org/Ticket/Display.html?id=82107
Subject: Re: [rt.cpan.org #82242] to_S("first release") != "first releases"
Date: Tue, 25 Dec 2012 10:39:42 -0500
To: bug-Lingua-EN-Inflect-Phrase [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] gmail.com>
Download (untitled) / with headers
text/plain 1.1k
Hi Michael, Sorry about that, I'll have a fix later today. On Dec 25, 2012 8:45 AM, "Michael G Schwern via RT" < bug-Lingua-EN-Inflect-Phrase@rt.cpan.org> wrote: Show quoted text
> Tue Dec 25 08:45:30 2012: Request 82242 was acted upon. > Transaction: Ticket created by MSCHWERN > Queue: Lingua-EN-Inflect-Phrase > Subject: to_S("first release") != "first releases" > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: mschwern@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=82242 > > > > use Lingua::EN::Inflect::Phrase qw(to_S); print to_S("first release"); > > This should be "first release" instead it is "first releases". A bisect > says > 817ab8e2e290f1a97ba6179fd850e3ac5b56b2d8 is at fault. > > The issue appears to be that "first" is being interpreted as a number by > Lingua::EN::Number's regex. A quick hack is to special case "first" but > "second", "third", etc... are all singular and the bug appears for "second > release" as well. > > This is causing a bug in BackPAN::Index because of > DBIx::Class::Schema::Loader > inflecting a relationship incorrectly. > https://rt.cpan.org/Ticket/Display.html?id=82107 > >
Fixed in 0.17.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.