Go library that pluralizes and singularizes English nouns.
Go
Switch branches/tags
Nothing to show
Clone or download
gedex Merge pull request #3 from kenshaw/add-reverse-unit-test
Adding unit test for reverse of Singularize/Pluralize
Latest commit 16278e9 Mar 8, 2017

README.md

Inflector

Inflector pluralizes and singularizes English nouns.

Build Status Coverage Status GoDoc

Basic Usage

There are only two exported functions: Pluralize and Singularize.

fmt.Println(inflector.Singularize("People")) // will print "Person"
fmt.Println(inflector.Pluralize("octopus")) // will print "octopuses"

Credits

License

This library is distributed under the BSD-style license found in the LICENSE.md file.