Functions and rules for pluralizing nouns.
Functions and rules for pluralizing nouns.
(add-pluralize-noun-exceptions _exception-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.
(in? x coll)Return true if x is in coll, else false.
Return true if x is in coll, else false.
(pluralize-noun count noun)Return the pluralized noun if the `count' is not 1.
Return the pluralized noun if the `count' is not 1.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |