Perl Template::Plugin::Lingua::EN::Inflect module
This module is a Template Toolkit plugin to interface to Damien Conway's Lingua::EN::Inflect module.It allows you to write the following sort of TT2 code:
[%- USE infl = Lingua.EN.Inflect;and get results like:
n_errors = 42;
FILTER inflect(number => n_errors); -%]
There PL_V(was) NO(error).
PL_ADJ(This) PL_N(error) PL_V(was) fatal.
[% END;
"... and "; infl.ORD(9); "ly...";
-%]
There were 42 errors.
These errors were fatal.
... and 9thly...
The distribution is available as a tar file here file (it will shortly be available on CPAN.)
Andrew Ford
2 September 2005