std.string.plural

*initalized*

dynamic

*plural-irregular*

dynamic

*plural-rules*

dynamic

*singular-irregular*

dynamic

*singular-rules*

dynamic

*uncountable*

dynamic

+base-irregular+

+base-plural+

+base-singular+

+base-uncountable+

irregular?

added in 3.0

(irregular? word)

checks if a work is irregular

(irregular? “geese”) => true

plural

added in 3.0

(plural s)

converts a word into its plural

(plural “man”) => “men”

(plural “rate”) => “rates”

(plural “inventory”) => “inventories”

(plural “moose”) => “moose”

resolve-rules

added in 3.0

(resolve-rules rules word)

goes through rules and checks if there is a matching pattern

(resolve-rules @singular-rules “hello”) => nil

(resolve-rules @singular-rules “hellos”) => “hello”

singular

added in 3.0

(singular s)

converts a word into its singular

(singular “rats”) => “rat”

(singular “geese”) => “goose”

uncountable?

added in 3.0

(uncountable? word)

checks if a word is uncountable

(uncountable? “gold”) => true

(uncountable? “moose”) => true