[Pkg-javascript-commits] [node-irregular-plurals] 01/03: Import Upstream version 1.2.0

Abhishek Lolage abhisheklolage-guest at moszumanska.debian.org
Sun Feb 5 19:28:11 UTC 2017


This is an automated email from the git hooks/post-receive script.

abhisheklolage-guest pushed a commit to branch master
in repository node-irregular-plurals.

commit 02754ecb04cd29bc2ea41edc5e49f5c2d9a924cf
Author: Abhishek Lolage <abhisheklolage at gmail.com>
Date:   Tue Jan 31 13:00:14 2017 +0000

    Import Upstream version 1.2.0
---
 .editorconfig          |  15 ++++++
 .gitattributes         |   1 +
 .gitignore             |   1 +
 .travis.yml            |   5 ++
 irregular-plurals.json | 128 +++++++++++++++++++++++++++++++++++++++++++++++++
 license                |  21 ++++++++
 package.json           |  39 +++++++++++++++
 readme.md              |  46 ++++++++++++++++++
 test.js                |   7 +++
 9 files changed, 263 insertions(+)

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..8f9d77e
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+root = true
+
+[*]
+indent_style = tab
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[{package.json,*.yml}]
+indent_style = space
+indent_size = 2
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..176a458
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+* text=auto
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..2a2f1c6
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+  - 'stable'
+  - '0.12'
+  - '0.10'
diff --git a/irregular-plurals.json b/irregular-plurals.json
new file mode 100644
index 0000000..0de74a6
--- /dev/null
+++ b/irregular-plurals.json
@@ -0,0 +1,128 @@
+{
+	"addendum": "addenda",
+	"aircraft": "aircraft",
+	"alga": "algae",
+	"alumna": "alumnae",
+	"alumnus": "alumni",
+	"amoeba": "amoebae",
+	"analysis": "analyses",
+	"antenna": "antennae",
+	"antithesis": "antitheses",
+	"apex": "apices",
+	"appendix": "appendices",
+	"axis": "axes",
+	"bacillus": "bacilli",
+	"bacterium": "bacteria",
+	"barracks": "barracks",
+	"basis": "bases",
+	"beau": "beaux",
+	"bison": "bison",
+	"bureau": "bureaus",
+	"cactus": "cacti",
+	"calf": "calves",
+	"child": "children",
+	"château": "châteaus",
+	"cherub": "cherubim",
+	"codex": "codices",
+	"concerto": "concerti",
+	"corpus": "corpora",
+	"crisis": "crises",
+	"criterion": "criteria",
+	"curriculum": "curricula",
+	"datum": "data",
+	"deer": "deer",
+	"diagnosis": "diagnoses",
+	"die": "dice",
+	"dwarf": "dwarfs",
+	"echo": "echoes",
+	"elf": "elves",
+	"elk": "elk",
+	"ellipsis": "ellipses",
+	"embargo": "embargoes",
+	"emphasis": "emphases",
+	"erratum": "errata",
+	"faux pas": "faux pas",
+	"fez": "fezes",
+	"firmware": "firmware",
+	"fish": "fish",
+	"focus": "foci",
+	"foot": "feet",
+	"formula": "formulae",
+	"fungus": "fungi",
+	"gallows": "gallows",
+	"genus": "genera",
+	"goose": "geese",
+	"graffito": "graffiti",
+	"grouse": "grouse",
+	"half": "halves",
+	"hero": "heroes",
+	"hoof": "hooves",
+	"hypothesis": "hypotheses",
+	"index": "indices",
+	"knife": "knives",
+	"larva": "larvae",
+	"leaf": "leaves",
+	"libretto": "libretti",
+	"life": "lives",
+	"loaf": "loaves",
+	"locus": "loci",
+	"louse": "lice",
+	"man": "men",
+	"matrix": "matrices",
+	"means": "means",
+	"medium": "media",
+	"memorandum": "memoranda",
+	"minutia": "minutiae",
+	"moose": "moose",
+	"mouse": "mice",
+	"nebula": "nebulae",
+	"neurosis": "neuroses",
+	"news": "news",
+	"nucleus": "nuclei",
+	"oasis": "oases",
+	"offspring": "offspring",
+	"opus": "opera",
+	"ovum": "ova",
+	"ox": "oxen",
+	"paralysis": "paralyses",
+	"parenthesis": "parentheses",
+	"phenomenon": "phenomena",
+	"phylum": "phyla",
+	"potato": "potatoes",
+	"prognosis": "prognoses",
+	"quiz": "quizzes",
+	"radius": "radii",
+	"referendum": "referenda",
+	"salmon": "salmon",
+	"scarf": "scarves",
+	"self": "selves",
+	"series": "series",
+	"sheep": "sheep",
+	"shelf": "shelves",
+	"shrimp": "shrimp",
+	"species": "species",
+	"stimulus": "stimuli",
+	"stratum": "strata",
+	"swine": "swine",
+	"syllabus": "syllabi",
+	"symposium": "symposia",
+	"synopsis": "synopses",
+	"synthesis": "syntheses",
+	"tableau": "tableaus",
+	"that": "those",
+	"thesis": "theses",
+	"thief": "thieves",
+	"tomato": "tomatoes",
+	"tooth": "teeth",
+	"trout": "trout",
+	"tuna": "tuna",
+	"vertebra": "vertebrae",
+	"vertex": "vertices",
+	"veto": "vetoes",
+	"vita": "vitae",
+	"vortex": "vortices",
+	"wharf": "wharves",
+	"wife": "wives",
+	"wolf": "wolves",
+	"woman": "women"
+}
diff --git a/license b/license
new file mode 100644
index 0000000..654d0bf
--- /dev/null
+++ b/license
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Sindre Sorhus <sindresorhus at gmail.com> (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..5ce67f2
--- /dev/null
+++ b/package.json
@@ -0,0 +1,39 @@
+{
+  "name": "irregular-plurals",
+  "version": "1.2.0",
+  "description": "Map of nouns to their irregular plural form",
+  "license": "MIT",
+  "repository": "sindresorhus/irregular-plurals",
+  "author": {
+    "name": "Sindre Sorhus",
+    "email": "sindresorhus at gmail.com",
+    "url": "sindresorhus.com"
+  },
+  "main": "irregular-plurals.json",
+  "engines": {
+    "node": ">=0.10.0"
+  },
+  "scripts": {
+    "test": "xo && ava"
+  },
+  "files": [
+    "irregular-plurals.json"
+  ],
+  "keywords": [
+    "word",
+    "words",
+    "list",
+    "map",
+    "hash",
+    "json",
+    "irregular",
+    "plural",
+    "plurals",
+    "noun",
+    "nouns"
+  ],
+  "devDependencies": {
+    "ava": "*",
+    "xo": "*"
+  }
+}
diff --git a/readme.md b/readme.md
new file mode 100644
index 0000000..a700d63
--- /dev/null
+++ b/readme.md
@@ -0,0 +1,46 @@
+# irregular-plurals [![Build Status](https://travis-ci.org/sindresorhus/irregular-plurals.svg?branch=master)](https://travis-ci.org/sindresorhus/irregular-plurals)
+
+> Map of nouns to their irregular plural form  
+>
+> An irregular plural in this library is defined as a noun that cannot be made plural by applying these rules:
+> - If the noun ends in an "s", "x", "z", "ch" or "sh", add "es"
+> - If the noun ends in a "y" and is preceded by a consonent, drop the "y" and add "ies"
+> - If the noun ends in a "y" and is preceded by a vowel, add "s"
+
+*The list is just a [JSON file](irregular-plurals.json) and can be used wherever.*
+
+
+## Install
+
+```
+$ npm install --save irregular-plurals
+```
+
+
+## Usage
+
+```js
+const irregularPlurals = require('irregular-plurals');
+
+console.log(irregularPlurals['cactus']);
+//=> 'cacti'
+
+console.log(irregularPlurals);
+/*
+    {
+        addendum: 'addenda',
+        alga: 'algae',
+        ...
+    }
+*/
+```
+
+
+## Related
+
+- [plur](https://github.com/sindresorhus/plur) - Pluralize a word
+
+
+## License
+
+MIT © [Sindre Sorhus](http://sindresorhus.com)
diff --git a/test.js b/test.js
new file mode 100644
index 0000000..1f3aaec
--- /dev/null
+++ b/test.js
@@ -0,0 +1,7 @@
+import test from 'ava';
+import m from './irregular-plurals.json';
+
+test(t => {
+	t.true(typeof m === 'object');
+	t.true('calf' in m);
+});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-irregular-plurals.git



More information about the Pkg-javascript-commits mailing list