canonicalizer

1.0.3 • Public • Published

canonicalizer

A module that handles getting singular and plural forms of nouns. Deals with input that is in possessive form, is an uncountable noun, and other edge cases. Does its heavy lifting with inflection.

Installation

npm install canonicalizer

Usage

	var canonicalizer = require('canonicalizer');
	var forms = canonicalizer.getSingularAndPluralForms('passerby');
	console.log(forms[1], 'is the plural form of', forms[0], '.');
	// passersby is the plural form of passerby.

Tests

Run tests with make test.

License

MIT.

Package Sidebar

Install

npm i canonicalizer

Weekly Downloads

7

Version

1.0.3

License

MIT

Unpacked Size

14.1 kB

Total Files

11

Last publish

Collaborators

  • jimkang