Functions and rules for pluralizing nouns.
Functions and rules for pluralizing nouns.
(add-pluralize-noun-exceptions execption-description exceptions)
Adds some number of exception cases.
exceptions is a map from singular form to plural form.
The exception description is for documentation only, it is ignored and may be nil.
Adds some number of exception cases. exceptions is a map from singular form to plural form. The exception description is for documentation only, it is ignored and may be nil.
(add-pluralize-noun-rule rule-description cond? result-fn)
Adds a rule for pluralizing. The singular form of the noun is passed to the cond? predicate and if that return a truthy value, the singular form is passed to the result-fn to generate the plural form.
The rule description is for documentation only, it is ignored and may be nil.
Adds a rule for pluralizing. The singular form of the noun is passed to the cond? predicate and if that return a truthy value, the singular form is passed to the result-fn to generate the plural form. The rule description is for documentation only, it is ignored and may be nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close