mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-13 19:01:09 -04:00
* Add a Arukas provider * Add dependencies for the Arukas provider * Add documents for the Arukas
26 lines
897 B
Markdown
26 lines
897 B
Markdown
Inflector
|
|
=========
|
|
|
|
Inflector pluralizes and singularizes English nouns.
|
|
|
|
[](https://travis-ci.org/gedex/inflector)
|
|
[](https://coveralls.io/r/gedex/inflector?branch=master)
|
|
[](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.
|