Inflectorex pluralizes and singularizes English nouns.
Inflectorex.singularize("workers") # will give "worker"
Inflectorex.pluralize("secret") # will give "secrets"
Currently the application has 4 regex lists.
You can extend these lists using the config
block. To extend each of the lists the
keys are as follows -
@plural_regexps
-plural
@singular_regexps
-singular
@singular_uninflected
-singular_uninflected
@plural_uninflected
-plural_uninflected
Note - right is the key
config :inflectorex, plural: [
{~r/developer/ , "developers"},
{~r/elixir/, "elixirs"}
]
- Implement caching
- Error handling
- code commenting
- tests
- publishing to hex.pm
- CakePHP's inflector
- degex/inflector
MIT