This is an almost direct port of InflectionJS written in CoffeeScript.
Renders a singular English language noun into it's plural form.
Normal results can be overridden by passing in an alternative.
Eenders a plural English language noun into it's singular form.
Normal results can be overridden by passing in an alternative.
Renders a lower case underscored word into camel case.
The first letter of the result will be upper case unless you pass true.
This also translates "/" into "::" (underscore
does the opposite.)
renders a camel cased word into words separated by underscores.
This also translates "::" into "/" (camelize
does the opposite.)
Renders a lower case and/or underscored word into human readable form. The first letter of the result will be upper case unless you pass true.
Renders all characters to lower case and then makes the first upper.
Renders all underscores and spaces as dashes.
Renders words into title casing (as for book titles.)
Renders class names that are prepended by modules into just the class.
Renders camel cased singular words into their underscored plural form.
Renders an underscored plural word into its camel cased singular form.
Renders a class name (camel cased singular noun) into a foreign key. Defaults to separating the class from the id with an underscore unless you pass true.
Renders all numbers found in the string into their sequence like "22nd".