IHP Api Reference
Safe HaskellNone

IHP.NameSupport.Inflections

Synopsis

Documentation

pluralize :: Text -> Text Source #

pluralize a given word >>> pluralize "person" "people" >>> pluralize "dog" "dogs"

singularize :: Text -> Text Source #

singularize a given word >>> singularize "people" "person" >>> singularize "cats" "cat"

inflect :: Text -> Int -> Text Source #

inflect a word given any number >>> inflect "person" 1 "person" >>> inflect "person" 2 "people"