Categorygithub.com/nullbio/inflect
modulepackage
0.0.0-20170731032957-3edb4592a77b
Repository: https://github.com/nullbio/inflect.git
Documentation: pkg.go.dev

# README

# Functions

AddAcronym to the default ruleset.
AddHuman to the default ruleset.
AddIrregular to the default ruleset.
AddPlural to the default ruleset.
AddSingular to the default ruleset.
AddUncountable to the default ruleset.
Asciify word.
Camelize word.
CamelizeDownFirst word.
Capitalize word.
Dasherize word.
ForeignKey word.
ForeignKeyCondensed word.
Humanize word.
NewDefaultRuleset creates a new ruleset and load it with the default set of common English pluralization rules.
NewRuleset creates a blank ruleset.
Ordinalize word.
Parameterize word.
ParameterizeJoin word using sep.
Pluralize word.
Singularize word.
Tableize word.
Titleize word.
Typeify word.
Uncountables returns the uncountable ruleset.
Underscore word.

# Structs

Rule is used by rulesets.
Ruleset is the config of pluralization rules you can extend the rules with the Add* methods.