Skip Menu |

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

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

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

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



Subject: inflect should take an optional second parameter like PL* do
Date: Wed, 14 Dec 2016 13:24:10 -0800
To: bug-Lingua-EN-Inflect [...] rt.cpan.org
From: Yitzchak Scott-Thoennes <sthoenna [...] gmail.com>
inflect() should take an optional second parameter like PL* do, to use as the initial default number instead of $persistent_count. This would simplify code like this: if (@error) { Lingua::EN::Inflect::NUM(scalar @error); $message .= inflect "The following PL_N(error) PL_V(was) encountered:\n\n"; to if (@error) { $message .= inflect "The following PL_N(error) PL_V(was) encountered:\n\n", scalar @error; and avoid the need to set the global value for a transient use.