Reference

Class

RiTa

Name

singularize

Description Singularize a word according to singularization rules
Example

singular = RiTa.singularize("dogs"); // returns "dog"

singular = RiTa.singularize("mice"); // returns "mouse"

Parameters
Stringthe noun
Object
(or Map in Java)
option for singularization (optional)

{boolean} option.dbug: if true, output debug log to console
Returns
Stringthe singular form of the noun
Syntax
RiTa.singularize(word);
RiTa.sigularize(word, option);
Platform Java / JavaScript