Categorygithub.com/charm-jp/inflector
modulepackage
0.0.0-20190911075709-5caff04028e4
Repository: https://github.com/charm-jp/inflector.git
Documentation: pkg.go.dev

# README

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.

# Functions

Pluralize returns string s in plural form.
Singularize returns string s in singular form.

# Constants

No description provided by the author
No description provided by the author

# Structs

InflectorRule represents inflector rule.

# Type aliases

Rule represents name of the inflector rule, can be Plural or Singular.