$ go get -u github.com/martinusso/inflect
IntoWords convert numbers (float64) to words
funcIntoWords(numberfloat64) stringgot:=IntoWords(42) // -> forty-twogot:=IntoWords(-147) // -> Minus one hundred and forty-sevenIsConsonant check if a character is a consonant
funcIsConsonant(sstring) boolIsVowel check if a character is a vowel
funcIsVowel(sstring) boolOrdinal 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...
funcOrdinal(numberint) stringgot:=Ordinal(-1) // -> stgot:=Ordinal(42) // -> ndOrdinalize turns a number into an ordinal string
funcOrdinalize(numberint) stringgot:=Ordinal(-1) // -> -1stgot:=Ordinal(42) // -> 42ndParameterize replaces special characters in a pretty string
funcParameterize(sstring) stringgot:=Parameterize("J. R. R. Tolkien") // -> "j-r-r-tolkien"ParameterizeSep replaces special characters, according to the separator, in a string
funcParameterizeSep(s, sepstring) stringgot:=ParameterizeSep("J. R. R. Tolkien", "_") // -> "j_r_r_tolkien"Pluralize generates the plurals of nouns
funcPluralize(wordstring) stringgot:=Plural("word") // -> wordsgot:=Plural("noun") // -> nounsThis software is open source, licensed under the The MIT License (MIT). See LICENSE for details.