joshforisha/elm-inflect/1.0.0

elm-inflect

elm-inflect lets you convert a String to its plural, singular, camelCase, and PascalCase forms.

Examples

import Inflect exposing (pluralize, singularize, camelize, pascalize)

pluralize "axis" == "axes"
singularize "axes" == "axis"
camelize "foo _bar" == "fooBar"
pascalize "foo _bar" == "FooBar"

Documentation

License

The logic this package uses is borrowed from the activesupport Ruby gem and is therefore licensed under the same license: MIT.