Liking cljdoc? Tell your friends :D

clojure.contrib.inflect

Functions and rules for pluralizing nouns.

Functions and rules for pluralizing nouns.
raw docstring

add-pluralize-noun-exceptionsclj/s

(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.
sourceraw docstring

add-pluralize-noun-ruleclj/s

(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.
sourceraw docstring

in?clj/s

(in? x coll)
source

pluralize-nounclj/s

(pluralize-noun count noun)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close