Liking cljdoc? Tell your friends :D

baby.pat.vt.inflections


*acronyms*clj/s


*irregular-words*clj/s


*plural-rules*clj/s


*singular-rules*clj/s


*uncountable-words*clj/s


acronymclj/s

(acronym s)

Returns the the acronym for s if it is one, otherwise nil.

Returns the the acronym for `s` if it is one, otherwise nil.
raw docstring

add-acronym!clj/s

(add-acronym! word)

Adds word to the set of *acronyms*.

Adds `word` to the set of `*acronyms*`.
raw docstring

add-irregular!clj/s

(add-irregular! singular plural)

Add singular and plural to the set of *irregular-words*.

Add `singular` and `plural` to the set of `*irregular-words*`.
raw docstring

add-rule!clj/s

(add-rule! rules rule)

add-uncountable!clj/s

(add-uncountable! word)

Adds word to the set of *uncountable-words*.

Adds `word` to the set of `*uncountable-words*`.
raw docstring

cardinalize-keywordclj/s

(cardinalize-keyword f)

coerceclj/s

(coerce obj s)

Coerce the string s to the type of obj.

Coerce the string `s` to the type of `obj`.
raw docstring

countable?clj/s

(countable? s)

Returns true if s is countable, otherwise false.

Returns true if `s` is countable, otherwise false.
raw docstring

delete-acronym!clj/s

(delete-acronym! word)

Delete word from the set of *acronyms*.

Delete `word` from the set of `*acronyms*`.
raw docstring

delete-irregular!clj/s

(delete-irregular! singular plural)

Delete singular and plural from the set of irregular-words.

Delete `singular` and `plural` from the set of *irregular-words*.
raw docstring

delete-uncountable!clj/s

(delete-uncountable! word)

Delete word from the set of *uncountable-words*.

Delete `word` from the set of `*uncountable-words*`.
raw docstring

init-inflections!clj/s

(init-inflections!)

Initialize the Inflections library with defaults.

Initialize the Inflections library with defaults.
raw docstring

init-irregular-words!clj/s

(init-irregular-words!)

init-plural-rules!clj/s

(init-plural-rules!)

init-singular-rules!clj/s

(init-singular-rules!)

irregular?clj/s

(irregular? word)

Returns true if word is an irregular word, otherwise false.

Returns true if `word` is an irregular word, otherwise false.
raw docstring

ordinality-ofclj/s

(ordinality-of s)

Returns :singular, :plural, or nil.

Returns :singular, :plural, or nil.
raw docstring

ordinalizeclj/s

(ordinalize x)

Turns x into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th, etc.

Examples:

(ordinalize "1") ;=> "1st"

(ordinalize "23") ;=> "23rd"

Turns `x` into an ordinal string used to denote the position in an
ordered sequence such as 1st, 2nd, 3rd, 4th, etc.

Examples:

  (ordinalize "1")
  ;=> "1st"

  (ordinalize "23")
  ;=> "23rd"
raw docstring

pluralclj/s

(plural s)

Returns the plural of s.

Returns the plural of s.
raw docstring

plural!clj/s

(plural! & patterns-and-replacements)

Define rule(s) to map words from singular to plural.

Examples: (plural! #"$(?i)" "s") (plural! #"(ax|test)is$(?i)" "$1es" #"(octop|vir)us$(?i)" "$1i")

Define rule(s) to map words from singular to plural.

Examples: (plural! #"$(?i)" "s")
          (plural! #"(ax|test)is$(?i)" "$1es"
                   #"(octop|vir)us$(?i)" "$1i")
raw docstring

plural-keywordclj/s


plural?clj/s

(plural? s)

Returns true if calling plural on a value returns the same value

Returns true if calling plural on a value returns the same value
raw docstring

pluralizeclj/s

(pluralize count singular & [plural])

Attempts to pluralize the word unless count is 1. If plural is supplied, it will use that when count is > 1, otherwise it will use the inflector to determine the plural form.

Attempts to pluralize the word unless count is 1. If plural is
supplied, it will use that when count is > 1, otherwise it will use
the inflector to determine the plural form.
raw docstring

reset-rules!clj/s

(reset-rules! rules)

Resets the list of plural rules.

Resets the list of plural rules.
raw docstring

resolve-ruleclj/s

(resolve-rule rule word)

resolve-rulesclj/s

(resolve-rules rules word)

singularclj/s

(singular s)

Returns the singular of s.

Returns the singular of s.
raw docstring

singular!clj/s

(singular! & patterns-and-replacements)

Define rule(s) to map words from singular to plural.

Examples: (singular! #"(n)ews$(?i)" "$1ews") (singular! #"(m)ovies$(?i)" "$1ovie" #"([m|l])ice$(?i)" "$1ouse")

Define rule(s) to map words from singular to plural.

Examples: (singular! #"(n)ews$(?i)" "$1ews")
          (singular! #"(m)ovies$(?i)" "$1ovie"
                     #"([m|l])ice$(?i)" "$1ouse")
raw docstring

singular-keywordclj/s


singular?clj/s

(singular? s)

Returns true if calling singular on a value returns the same value

Returns true if calling singular on a value returns the same value
raw docstring

slurp-rulesclj/s

(slurp-rules & patterns-and-replacements)

Returns a seq of rules, where the pattern and replacement must be given in pairs of two elements.

Returns a seq of rules, where the pattern and replacement must be
given in pairs of two elements.
raw docstring

str-nameclj/s

(str-name x)

Same as clojure.core/name, but keeps the namespace for keywords and symbols.

Same as `clojure.core/name`, but keeps the namespace for keywords
and symbols.
raw docstring

uncountable?clj/s

(uncountable? x)

Returns true if x is uncountable, otherwise false.

Returns true if `x` is uncountable, otherwise false.
raw docstring

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

× close