Skip to content
Inflector to pluralize/singularize words
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist Add dist folder.
src
test
.gitignore Add dist folder.
Gruntfile.js
README.md
bower.json Add dist folder.
package.json Add dist folder.

README.md

inflector.js

Transforms words to singular or plural.
This is a (not complete) js port of inflector class by Randall Hauch.

Installing And Usage

$ bower install inflector

Add this to your HTML file:

<script src="bower_components/inflector/dist/inflector.min.js"></script>

Use it like this:

inflector.pluralize("airplane"); // returns airplanes
inflector.singularize("videos"); // returns video

Note:

I'm not a linguist, and there are some errors.
Use at your own risk, debug me and send pull requests.

Something went wrong with that request. Please try again.