Skip Menu |

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

Report information
The Basics
Id: 16087
Status: new
Priority: 0/
Queue: Lingua-EN-Inflect

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

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



Subject: PL("children") returns "childrens" instead of expected "child"
Hi, I encountered a bug when using Lingua::EN::Inflect 1.89 to determine if arrays are named in plural in Module::Checkstyle. I've tracked it down to the PL function returning "childrens" instead of "child" when passing "children" as the argument. The following code shows the bug. <code> #!/usr/bin/perl use Lingua::EN::Inflect qw(PL_N_eq PL); print PL("children"), "\n"; # prints "childrens" print PL_N_eq("child", PL("child")), "\n"; # returns s:p print PL_N_eq("children", PL("children")), "\n"; # returns s:p </code> I'm using perl 5.8.4 on linux 2.4.27-2 Thanks, Claes Jacobsson
Date: Thu, 24 Nov 2005 22:54:41 +1100
From: Damian Conway <damian [...] conway.org>
To: bug-Lingua-EN-Inflect [...] rt.cpan.org
Subject: Re: [cpan #16087] PL("children") returns "childrens" instead of expected "child"
RT-Send-Cc:
Show quoted text
> I encountered a bug when using Lingua::EN::Inflect 1.89 to determine if arrays > are named in plural in Module::Checkstyle. > > I've tracked it down to the PL function returning "childrens" instead of "child" > when passing "children" as the argument.
Sorry, but this is not a bug. PL() takes a *singular* word and returns the *plural* form. Since "children" is not singular, it should not be expected to work. Damian