Conway's Lingua::EN::Inflect deals with pluralising (and the `a'/`an' distinction) for English.

I'm not sure how you'd internationalise your code to make it "swappable into languages other than English". You'd need a very good understanding of linguistics; some parts of the sentence that remain fixed in English could change drastically for other languages.


In reply to Re: natural language sentence construction by ariels
in thread natural language sentence construction by thpfft

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":