package inflection

Import Path
	github.com/jinzhu/inflection (on go.dev)

Dependency Relation
	imports 2 packages, and imported by one package

Involved Source Files
	d-> inflections.go

Exported Type Names

type Irregular (struct) Irregular is a hard replace inflection, containing both singular and plural forms
type IrregularSlice ([]) IrregularSlice is a slice of Irregular inflections func GetIrregular() IrregularSlice func SetIrregular(inflections IrregularSlice)
type Regular (struct) Regular is a regexp find replace inflection
type RegularSlice ([]) RegularSlice is a slice of Regular inflections func GetPlural() RegularSlice func GetSingular() RegularSlice func SetPlural(inflections RegularSlice) func SetSingular(inflections RegularSlice)
Exported Values
func AddIrregular(singular, plural string) AddIrregular adds an irregular inflection
func AddPlural(find, replace string) AddPlural adds a plural inflection
func AddSingular(find, replace string) AddSingular adds a singular inflection
func AddUncountable(values ...string) AddUncountable adds an uncountable inflection
func GetIrregular() IrregularSlice GetIrregular retrieves the irregular inflection values
func GetPlural() RegularSlice GetPlural retrieves the plural inflection values
func GetSingular() RegularSlice GetSingular retrieves the singular inflection values
func GetUncountable() []string GetUncountable retrieves the uncountable inflection values
func Plural(str string) string Plural converts a word to its plural form
func SetIrregular(inflections IrregularSlice) SetIrregular sets the irregular inflections slice
func SetPlural(inflections RegularSlice) SetPlural sets the plural inflections slice
func SetSingular(inflections RegularSlice) SetSingular sets the singular inflections slice
func SetUncountable(inflections []string) SetUncountable sets the uncountable inflections slice
func Singular(str string) string Singular converts a word to its singular form