Skip Menu |

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

Report information
The Basics
Id: 59526
Status: open
Priority: 0/
Queue: Lingua-EN-Inflect

People
Owner: Nobody in particular
Requestors: njh [...] bandsman.co.uk
Cc:
AdminCc:

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



Subject: To singular?
I would like an equivalent module/function which took a plural and returned its singular. Does such code exist? If not then please could you add it to the wishlist? Thanks.
Subject: Re: [rt.cpan.org #59526] To singular?
Date: Mon, 19 Jul 2010 20:33:57 +1000
To: bug-Lingua-EN-Inflect [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> I would like an equivalent module/function which took a plural and > returned its singular.  Does such code exist?
Not in Lingua::EN::Inflect, I'm afraid. However you can almost get the right effect by using PL_V for nouns and PL_N for verbs. It's not perfect, but it often works. Show quoted text
> If not then please could > you add it to the wishlist?
In fact, it's already at the top of the list. :-) Damian
Subject: Re: [rt.cpan.org #59526] To singular?
Date: Mon, 19 Jul 2010 11:39:54 +0100
To: bug-Lingua-EN-Inflect [...] rt.cpan.org
From: Nigel Horne <njh [...] bandsman.co.uk>
Damian, Thank you for your answer. Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=59526> > >
>> I would like an equivalent module/function which took a plural and >> returned its singular. Does such code exist? >>
> Not in Lingua::EN::Inflect, I'm afraid. > > However you can almost get the right effect by using PL_V for nouns > and PL_N for verbs. It's not perfect, but it often works. >
I think I can do what I want using Lingua::EN::Inflect::Number::to_S; Show quoted text
>
>> If not then please could >> you add it to the wishlist? >>
> In fact, it's already at the top of the list. :-) >
Thanks! Show quoted text
> Damian >
-Nigel -- Nigel Horne. Arranger, Adjudicator, Band Trainer, Composer, Tutor, Typesetter. NJH Music, ICQ#20252325, twitter: @nigelhorne njh@bandsman.co.uk http://www.bandsman.co.uk