Programming Challenge Numbers to Text?
Jesse Stay
jessestay at gmail.com
Fri May 5 16:27:41 MDT 2006
On 5/5/06, Shane Hathaway <shane at hathawaymix.org> wrote:
> What I *do* see a need for, however, is something that automatically
> pluralizes properly, so that the system can output "finished 1 copy"
> instead of "finished 1 copys", "finished 1 copies", or the cop-out,
> "finished 1 copy(ies)". If Lisp has that functionality built in, that
> would impress me, even if it's English-only.
See Perl's Lingua::EN::Inflect on CPAN
http://search.cpan.org
--
#!/usr/bin/perl
$^=q;@!>~|{>krw>yn{u<$$<Sn||n<|}j=<$$<Yn{u<Qjltn{ > 0gFzD gD, 00Fz,
0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/
#y,d,s,(\$.),$1,gee,print
More information about the PLUG
mailing list