Subject: | Please allow user to configure moniker inflection (plural or singular) |
It's possible to use moniker_map to change whether the class name should
be the singular or plural of the table name, but a separate option to
change the default inflection would be really handy.
In other words, I'd like to be able to write:
__PACKAGE__->loader_options(
default_moniker_inflect_plural => 1
);
Instead of:
__PACKAGE__->loader_options(
moniker_map => sub {
join '',
map ucfirst,
split /[\W_]+/,
Lingua::EN::Inflect::Number::to_P(lc shift)
}
);
Thanks!
Byron