Global

Methods

adjective

adjective(adjective) → {string}

Conjugates an adjective to it's base form (VB). It also has an alias lemmatizeAdjective to maintain API level compatibility with previous version.

Example
lemmatize.adjective( 'farthest' );
// -> far
Parameters
Name Type Description
adjective string

that needs to be conjugated to base form.

Returns

the base form of adjective.

Type
string

noun

noun(noun) → {string}

Converts the input noun to it's singular form. It also has an alias lemmatizeNoun to maintain API level compatibility with previous version.

Example
lemmatize.noun( 'handkerchieves' );
// -> handkerchief
Parameters
Name Type Description
noun string

that needs to be lemmatized.

Returns

the singular of noun.

Type
string

verb

verb(verb) → {string}

Conjugates a verb to it's base form (VB). It also has an alias lemmatizeVerb to maintain API level compatibility with previous version.

Example
lemmatize.verb( 'winning' );
// -> win
Parameters
Name Type Description
verb string

that needs to be conjugated to base form.

Returns

the base form of verb.

Type
string