pax_global_header00006660000000000000000000000064127255201300014507gustar00rootroot0000000000000052 comment=b1e9cf2948122adeec7950c361437f1947187307 irregular-plurals-1.2.0/000077500000000000000000000000001272552013000151635ustar00rootroot00000000000000irregular-plurals-1.2.0/.editorconfig000066400000000000000000000003471272552013000176440ustar00rootroot00000000000000root = 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 irregular-plurals-1.2.0/.gitattributes000066400000000000000000000000141272552013000200510ustar00rootroot00000000000000* text=auto irregular-plurals-1.2.0/.gitignore000066400000000000000000000000151272552013000171470ustar00rootroot00000000000000node_modules irregular-plurals-1.2.0/.travis.yml000066400000000000000000000000761272552013000172770ustar00rootroot00000000000000language: node_js node_js: - 'stable' - '0.12' - '0.10' irregular-plurals-1.2.0/irregular-plurals.json000066400000000000000000000052341272552013000215360ustar00rootroot00000000000000{ "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" } irregular-plurals-1.2.0/license000066400000000000000000000021371272552013000165330ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) Sindre Sorhus (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. irregular-plurals-1.2.0/package.json000066400000000000000000000012721272552013000174530ustar00rootroot00000000000000{ "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@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": "*" } } irregular-plurals-1.2.0/readme.md000066400000000000000000000020671272552013000167470ustar00rootroot00000000000000# 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) irregular-plurals-1.2.0/test.js000066400000000000000000000002111272552013000164720ustar00rootroot00000000000000import test from 'ava'; import m from './irregular-plurals.json'; test(t => { t.true(typeof m === 'object'); t.true('calf' in m); });