Hi Ross,
Schema::Generator tries to use Lingua::EN::Inflect::Number to generate plurals; if it cannot use it, it falls back to just adding a 's'.
So my guess is that you should just reinstall Lingua::EN::Inflect::Number to make it work as before.
Cheers, Laurent Dami
De : dbix-da...@googlegroups.com [mailto:dbix-da...@googlegroups.com]
De la part de Ross Attrill
Envoyé : lundi, 26. novembre 2012 06:48
À : dbix-da...@googlegroups.com
Objet : [dbix-datamodel] Problem with pluralisation in reverse engineering
De : dbix-da...@googlegroups.com [mailto:dbix-da...@googlegroups.com]
De la part de Ross Attrill
Would you consider making Lingua::EN::Inflect::Number a mandatory dependency? It works much better with it installed.
OK, I'll do that. I was reluctant to introduce the dependency because are not many users of Schema::Generator (probably you are the only one:-). But Lingua::EN::Inflect::Number doesn't pull half of CPAN with it, so it's a reasonable dependency to add.
Hi Ross,
Your particular example makes sense, but I'm not sure if this can be turned into a general rule. Anyway the change is welcome if you want to investigate that. Maybe modules like https://metacpan.org/module/Lingua::EN::Inflect and https://metacpan.org/module/Lingua::EN::Inflect::Phrase could help.
Cheers, Laurent D.