This is the cl-inflector Reference Manual, version 0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:02:11 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-inflector
Functions to pluralize and singularize english and portuguese languages words
MIT
0.2
cl-ppcre
(system).
alexandria
(system).
langs.lisp
(file).
inflector.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-inflector/cl-inflector.asd
cl-inflector
(system).
cl-inflector/langs.lisp
cl-inflector
(system).
*current-language*
(special variable).
available-languages
(function).
current-language
(function).
current-language-name
(function).
irregulars
(reader method).
(setf irregulars)
(writer method).
language
(class).
plurals
(reader method).
(setf plurals)
(writer method).
set-language!
(function).
singulars
(reader method).
(setf singulars)
(writer method).
uncountables
(reader method).
(setf uncountables)
(writer method).
+en_us+
(special variable).
+languages+
(special variable).
+pt_br+
(special variable).
name
(reader method).
(setf name)
(writer method).
cl-inflector/inflector.lisp
cl-inflector
(system).
irregular
(function).
irregular?
(function).
plural-of
(function).
pluralize
(function).
singular-of
(function).
symbol-plural-of
(function).
symbol-singular-of
(function).
uncountable
(function).
uncountable?
(function).
get-irregular-plural
(function).
get-irregular-singular
(function).
inflector-helper
(function).
irregular-plural?
(function).
irregular-singular?
(function).
plural
(function).
singular
(function).
Packages are listed by definition order.
cl-inflector
Package with function to pluralize/singularize words.
inflector
cl-ppcre
.
common-lisp
.
irregular
(function).
irregular?
(function).
plural-of
(function).
pluralize
(function).
singular-of
(function).
symbol-plural-of
(function).
symbol-singular-of
(function).
uncountable
(function).
uncountable?
(function).
get-irregular-plural
(function).
get-irregular-singular
(function).
inflector-helper
(function).
irregular-plural?
(function).
irregular-singular?
(function).
plural
(function).
singular
(function).
cl-inflector.langs
Package with the language class and its methods and a few functions to handle the language class.
common-lisp
.
*current-language*
(special variable).
available-languages
(function).
current-language
(function).
current-language-name
(function).
irregulars
(generic reader).
(setf irregulars)
(generic writer).
language
(class).
plurals
(generic reader).
(setf plurals)
(generic writer).
set-language!
(function).
singulars
(generic reader).
(setf singulars)
(generic writer).
uncountables
(generic reader).
(setf uncountables)
(generic writer).
+en_us+
(special variable).
+languages+
(special variable).
+pt_br+
(special variable).
name
(generic reader).
(setf name)
(generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Current language used. Defaults to en_US.
Returns the name of all available languages.
Returns the current language object.
Returns the name of the current language.
Adds a irregular single-plural set to the irregular list
Tests if a given ‘word’ is irregular, plural or singular.
Returns the plural of a word if it’s singular, or itself if already plural
If ‘count’ is greater than 1, returns the ‘plural’ arg if provided, otherwise pluralizes the given ‘word’.
Sets the current language, if clone? then set to a copy of the current language this is useful - eg in testing or creating custom dictionaries.
Returns the singular of a word if it’s singular, or itself if already singular
Creates a symbol with the plural version of the given ‘word’.
Creates a symbol with the singular version of the given ‘word’.
Notifies the inflector that a word is uncountable.
Checks whether a given ‘word’ is uncountable.
Language object to hold all lists with regexps, irregulars and uncountable words.
Alist with (singular-matching-regex plural-equiv).
:plurals
Alist with (plural-matching-regex singular-equiv).
:singulars
List with uncountable words.
:uncountables
Alist with irregular words pairs.
:irregulars
Adapted *cough*ripped*cough* from rails inflector.rb singular->plurals regular expressions
List of all available languages objects.
Makes sure that a ‘singular’ word is on its plural form. If it is already plural, returns it. If it is not irregular, returns nil.
Makes sure that a ‘plural’ word is on its singular form. If it is already singular, returns it. If it is not irregular, returns nil.
Tests if a given ‘word’ is an irregular word in its plural form.
Tests if a given ‘word’ is an irregular word in its singular form.
Adds a plural rule, where RULE can be either a string or a regex, and REPLACEMENT can contain capture references defined in RULE
Adds a singular rule, where RULE can be either a string or a regex, and REPLACEMENT can contain capture references defined in RULE
Jump to: | (
A C F G I M N P S U |
---|
Jump to: | (
A C F G I M N P S U |
---|
Jump to: | *
+
I N P S U |
---|
Jump to: | *
+
I N P S U |
---|
Jump to: | C F I L P S |
---|
Jump to: | C F I L P S |
---|