Skip to content

maca/elm-inflect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-inflect

Convert nouns to their plural and singular forms attempting to preserve case, and adjectives.

Examples

toPlural "potato" == "potatoes"
toPlural "The Illustrated Man" == "The Illustrated Men"
toPlural "SHOUT" == "SHOUTS"
toPlural "foo_bar" == "foo_bars"

toSingular "potatoes" == "potato"
toSingular "The Illustrated Men" == "The Illustrated Man"
toSingular "SHOUTS" == "SHOUT"
tosingular "foo_bars"  == "foo_bar"

PRs and bug reports:

https//github.com/maca/elm-inflect

About

Strings pluralization and singularization

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages