Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gedex/inflector
Go library that pluralizes and singularizes English nouns.
https://github.com/gedex/inflector
go inflector pluralization singularizes-english-nouns
Last synced: about 1 month ago
JSON representation
Go library that pluralizes and singularizes English nouns.
- Host: GitHub
- URL: https://github.com/gedex/inflector
- Owner: gedex
- License: other
- Created: 2013-08-31T06:15:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-11-18T09:16:23.000Z (about 4 years ago)
- Last Synced: 2024-08-02T20:46:12.087Z (4 months ago)
- Topics: go, inflector, pluralization, singularizes-english-nouns
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 81
- Watchers: 5
- Forks: 17
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-indo-projects - Inflector - Inflector pluralizes and singularizes English nouns. (Go)
- awesome-indonesia-repo - Inflector - Inflector pluralizes and singularizes English nouns. (Go)
- awesome-vietnam-repo - Inflector - Inflector pluralizes and singularizes English nouns. (Go)
README
Inflector
=========Inflector pluralizes and singularizes English nouns.
[![Build Status](https://travis-ci.org/gedex/inflector.png?branch=master)](https://travis-ci.org/gedex/inflector)
[![Coverage Status](https://coveralls.io/repos/gedex/inflector/badge.png?branch=master)](https://coveralls.io/r/gedex/inflector?branch=master)
[![GoDoc](https://godoc.org/github.com/gedex/inflector?status.svg)](https://godoc.org/github.com/gedex/inflector)## Basic Usage
There are only two exported functions: `Pluralize` and `Singularize`.
~~~go
fmt.Println(inflector.Singularize("People")) // will print "Person"
fmt.Println(inflector.Pluralize("octopus")) // will print "octopuses"
~~~## Credits
* [CakePHP's Inflector](https://github.com/cakephp/cakephp/blob/master/lib/Cake/Utility/Inflector.php)
## License
This library is distributed under the BSD-style license found in the LICENSE.md file.