The Inflector class takes a string and can manipulate it to handle
word variations such as pluralizations or camelizing and is
normally accessed statically. Example:
Inflector::pluralize('example') returns “examples”.
You can try out the inflections online at inflector.cakephp.org.
pluralize() may not always correctly convert a noun that is already in
it’s plural form.
singularize() may not always correctly convert a noun that is already in
it’s singular form.
It should be noted that underscore will only convert camelCase formatted words. Words that contains spaces will be lower-cased, but will not contain an underscore.
slug($word, $replacement = '_')¶
Slug converts special characters into latin versions and converting unmatched characters and spaces to underscores. The slug method expects UTF-8 encoding.
Resets Inflector back to its initial state, useful in testing.