Global

Methods

adjective(adjective) → {string}

Source:

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) → {string}

Source:

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) → {string}

Source:

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