Socket
Book a DemoInstallSign in
Socket

canonicalizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canonicalizer

Provides singular and plural forms of nouns.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

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.

Keywords

singular

FAQs

Package last updated on 22 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts