Documentation ¶
Overview ¶
Package inflect generate plurals of nouns, ordinals; ordinalize numbers; parameterize/transliterate strings and convert numbers to words
Index ¶
- func Camelize(s string) string
- func IntoWords(number float64) string
- func IsConsonant(s string) bool
- func IsVowel(s string) bool
- func LowerCamelize(s string) string
- func Ordinal(number int) string
- func Ordinalize(number int) string
- func Parameterize(s string) string
- func ParameterizeSep(s, sep string) string
- func Pluralize(word string) string
- func Transliterate(word string) string
- func Underscore(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LowerCamelize ¶
LowerCamelize converts strings to lowerCamelCase
func Ordinal ¶
Ordinal returns the ordinal suffix that should be added to a number to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th...
func Ordinalize ¶
Ordinalize turns a number into an ordinal string
func Parameterize ¶
Parameterize replaces special characters in a pretty string
func ParameterizeSep ¶
ParameterizeSep replaces special characters, according to the separator, in a string
func Transliterate ¶
Transliterate replaces non-ASCII characters with an ASCII approximation, or if none exists, to “?”.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.