Inflectorex

Build Status

Inflectorex pluralizes and singularizes English nouns.

Usage


Inflectorex.singularize("workers") # will give "worker"

Inflectorex.pluralize("secret") # will give "secrets"

Extending the regex lists

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 -

Note - right is the key

Example config


config  :inflectorex, plural: [
    {~r/developer/ , "developers"},
    {~r/elixir/, "elixirs"}
    ]  

Todo

Credits

License

MIT