inflection
Advanced tools
Comparing version 1.5.2 to 1.5.3
{ | ||
"name": "inflection", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"homepage": "https://github.com/dreamerslab/node.inflection", | ||
@@ -21,3 +21,4 @@ "description": "JavaScript Inflection Support", | ||
{ "name": "Gianni Chiappetta", "email": "gianni@runlevel6.org" }, | ||
{ "name": "Eric Brody" } | ||
{ "name": "Eric Brody" }, | ||
{ "name": "overlookmotel" } | ||
], | ||
@@ -24,0 +25,0 @@ "main": "inflection.min.js", |
{ | ||
"name": "inflection", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"repo": "dreamerslab/node.inflection", | ||
@@ -24,3 +24,4 @@ "description": "A port of inflection-js to node.js module", | ||
{ "name": "Gianni Chiappetta", "email": "gianni@runlevel6.org" }, | ||
{ "name": "Eric Brody" } | ||
{ "name": "Eric Brody" }, | ||
{ "name": "overlookmotel" } | ||
], | ||
@@ -27,0 +28,0 @@ "dependencies": {}, |
# History | ||
## 1.5.3 / 2014-12-06 | ||
- [bug fix] Remove invalid uncountable words | ||
## 1.5.2 / 2014-11-14 | ||
@@ -4,0 +10,0 @@ |
@@ -10,3 +10,3 @@ /*! | ||
(function(a,b){if(typeof define==="function"&&define.amd){define([],b); | ||
}else{if(typeof exports==="object"){module.exports=b();}else{a.inflection=b();}}}(this,function(){var d=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","art","assistance","athletics","attention","bacon","baggage","ballet","beauty","beef","beer","behavior","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","damage","dancing","danger","deer","delight","dessert","dignity","dirt","distribution","dust","economics","education","electricity","employment","energy","engineering","enjoyment","entertainment","envy","equipment","ethics","evidence","evolution","failure","faith","fame","fiction","flour","flu","food","freedom","fruit","fuel","fun","furniture","gallows","garbage","garlic","gas","genetics","glass","gold","golf","gossip","grammar","grass","gratitude","grief","ground","guilt","gymnastics","hair","happiness","hardware","harm","hate","hatred","health","heat","height","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","injustice","innocence","intelligence","iron","irony","jam","jealousy","jelly","jewelry","joy","judo","juice","justice","karate","kindness","knowledge","labour","lack","land","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","love","luck","luggage","macaroni","machinery","magic","mail","management","mankind","marble","mathematics","mayonnaise","measles","meat","metal","methane","milk","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oil","oxygen","paper","passion","pasta","patience","permission","physics","poetry","pollution","poverty","power","pride","production","progress","pronunciation","psychology","publicity","punctuation","quality","quantity","quartz","racism","rain","recreation","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","salad","salt","sand","satire","scenery","seafood","seaside","series","shame","sheep","shopping","silence","sleep","smoke","smoking","snow","soap","software","soil","sorrow","soup","spaghetti","speed","species","spelling","sport","steam","strength","stuff","stupidity","success","sugar","sunshine","symmetry","tea","tennis","thirst","thunder","timber","time","toast","tolerance","trade","traffic","transportation","travel","trust","understanding","underwear","unemployment","unity","usage","validity","veal","vegetation","vegetarianism","vengeance","violence","vision","vitality","warmth","water","wealth","weather","weight","welfare","wheat","whiskey","width","wildlife","wine","wisdom","wood","wool","work","yeast","yoga","zinc","zoology"]; | ||
}else{if(typeof exports==="object"){module.exports=b();}else{a.inflection=b();}}}(this,function(){var d=["accommodation","adulthood","advertising","advice","aggression","aid","air","aircraft","alcohol","anger","applause","arithmetic","assistance","athletics","bacon","baggage","beef","biology","blood","botany","bread","butter","carbon","cardboard","cash","chalk","chaos","chess","crossroads","countryside","dancing","deer","dignity","dirt","dust","economics","education","electricity","engineering","enjoyment","envy","equipment","ethics","evidence","evolution","fame","fiction","flour","flu","food","fuel","fun","furniture","gallows","garbage","garlic","genetics","gold","golf","gossip","grammar","gratitude","grief","guilt","gymnastics","happiness","hardware","harm","hate","hatred","health","heat","help","homework","honesty","honey","hospitality","housework","humour","hunger","hydrogen","ice","importance","inflation","information","innocence","iron","irony","jam","jewelry","judo","karate","knowledge","lack","laughter","lava","leather","leisure","lightning","linguine","linguini","linguistics","literature","litter","livestock","logic","loneliness","luck","luggage","macaroni","machinery","magic","management","mankind","marble","mathematics","mayonnaise","measles","methane","milk","money","mud","music","mumps","nature","news","nitrogen","nonsense","nurture","nutrition","obedience","obesity","oxygen","pasta","patience","physics","poetry","pollution","poverty","pride","psychology","publicity","punctuation","quartz","racism","relaxation","reliability","research","respect","revenge","rice","rubbish","rum","safety","scenery","seafood","seaside","series","shame","sheep","shopping","sleep","smoke","smoking","snow","soap","software","soil","spaghetti","species","steam","stuff","stupidity","sunshine","symmetry","tennis","thirst","thunder","timber","traffic","transportation","trust","underwear","unemployment","unity","validity","veal","vegetation","vegetarianism","vengeance","violence","vitality","warmth","wealth","weather","welfare","wheat","wildlife","wisdom","yoga","zinc","zoology"]; | ||
var i={plural:{men:new RegExp("^(m)en$","gi"),people:new RegExp("(pe)ople$","gi"),children:new RegExp("(child)ren$","gi"),tia:new RegExp("([ti])a$","gi"),analyses:new RegExp("((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$","gi"),hives:new RegExp("(hi|ti)ves$","gi"),curves:new RegExp("(curve)s$","gi"),lrves:new RegExp("([lr])ves$","gi"),foves:new RegExp("([^fo])ves$","gi"),movies:new RegExp("(m)ovies$","gi"),aeiouyies:new RegExp("([^aeiouy]|qu)ies$","gi"),series:new RegExp("(s)eries$","gi"),xes:new RegExp("(x|ch|ss|sh)es$","gi"),mice:new RegExp("([m|l])ice$","gi"),buses:new RegExp("(bus)es$","gi"),oes:new RegExp("(o)es$","gi"),shoes:new RegExp("(shoe)s$","gi"),crises:new RegExp("(cris|ax|test)es$","gi"),octopi:new RegExp("(octop|vir)i$","gi"),aliases:new RegExp("(alias|status)es$","gi"),summonses:new RegExp("^(summons)es$","gi"),oxen:new RegExp("^(ox)en","gi"),matrices:new RegExp("(matr)ices$","gi"),vertices:new RegExp("(vert|ind)ices$","gi"),feet:new RegExp("^feet$","gi"),teeth:new RegExp("^teeth$","gi"),geese:new RegExp("^geese$","gi"),quizzes:new RegExp("(quiz)zes$","gi"),whereases:new RegExp("^(whereas)es$","gi"),ss:new RegExp("ss$","gi"),s:new RegExp("s$","gi")},singular:{man:new RegExp("^(m)an$","gi"),person:new RegExp("(pe)rson$","gi"),child:new RegExp("(child)$","gi"),ox:new RegExp("^(ox)$","gi"),axis:new RegExp("(ax|test)is$","gi"),octopus:new RegExp("(octop|vir)us$","gi"),alias:new RegExp("(alias|status)$","gi"),summons:new RegExp("^(summons)$","gi"),bus:new RegExp("(bu)s$","gi"),buffalo:new RegExp("(buffal|tomat|potat)o$","gi"),tium:new RegExp("([ti])um$","gi"),sis:new RegExp("sis$","gi"),ffe:new RegExp("(?:([^f])fe|([lr])f)$","gi"),hive:new RegExp("(hi|ti)ve$","gi"),aeiouyy:new RegExp("([^aeiouy]|qu)y$","gi"),x:new RegExp("(x|ch|ss|sh)$","gi"),matrix:new RegExp("(matr)ix$","gi"),vertex:new RegExp("(vert|ind)ex$","gi"),mouse:new RegExp("([m|l])ouse$","gi"),foot:new RegExp("^foot$","gi"),tooth:new RegExp("^tooth$","gi"),goose:new RegExp("^goose$","gi"),quiz:new RegExp("(quiz)$","gi"),whereas:new RegExp("^(whereas)$","gi"),s:new RegExp("s$","gi"),common:new RegExp("$","gi")}}; | ||
@@ -31,3 +31,3 @@ var g=[[i.plural.men],[i.plural.people],[i.plural.children],[i.plural.tia],[i.plural.analyses],[i.plural.hives],[i.plural.curves],[i.plural.lrves],[i.plural.foves],[i.plural.aeiouyies],[i.plural.series],[i.plural.movies],[i.plural.xes],[i.plural.mice],[i.plural.buses],[i.plural.oes],[i.plural.shoes],[i.plural.crises],[i.plural.octopi],[i.plural.aliases],[i.plural.summonses],[i.plural.oxen],[i.plural.matrices],[i.plural.feet],[i.plural.teeth],[i.plural.geese],[i.plural.quizzes],[i.plural.whereases],[i.singular.man,"$1en"],[i.singular.person,"$1ople"],[i.singular.child,"$1ren"],[i.singular.ox,"$1en"],[i.singular.axis,"$1es"],[i.singular.octopus,"$1i"],[i.singular.alias,"$1es"],[i.singular.summons,"$1es"],[i.singular.bus,"$1ses"],[i.singular.buffalo,"$1oes"],[i.singular.tium,"$1a"],[i.singular.sis,"ses"],[i.singular.ffe,"$1$2ves"],[i.singular.hive,"$1ves"],[i.singular.aeiouyy,"$1ies"],[i.singular.x,"$1es"],[i.singular.matrix,"$1ices"],[i.singular.vertex,"$1ices"],[i.singular.mouse,"$1ice"],[i.singular.foot,"feet"],[i.singular.tooth,"teeth"],[i.singular.goose,"geese"],[i.singular.quiz,"$1zes"],[i.singular.whereas,"$1es"],[i.singular.s,"s"],[i.singular.common,"s"]]; | ||
var p=q[o].substring(q[o].length-1);var l="th";if(r!="11"&&r!="12"&&r!="13"){if(p==="1"){l="st";}else{if(p==="2"){l="nd";}else{if(p==="3"){l="rd";}}}}q[o]+=l; | ||
}}return q.join(" ");},transform:function(o,l){var n=0;var m=l.length;for(;n<m;n++){var p=l[n];if(this.hasOwnProperty(p)){o=this[p](o);}}return o;}};b.version="1.5.2"; | ||
}}return q.join(" ");},transform:function(o,l){var n=0;var m=l.length;for(;n<m;n++){var p=l[n];if(this.hasOwnProperty(p)){o=this[p](o);}}return o;}};b.version="1.5.3"; | ||
return b;})); |
@@ -39,14 +39,14 @@ /*! | ||
'arithmetic', | ||
'art', | ||
// 'art', | ||
'assistance', | ||
'athletics', | ||
'attention', | ||
// 'attention', | ||
'bacon', | ||
'baggage', | ||
'ballet', | ||
'beauty', | ||
// 'ballet', | ||
// 'beauty', | ||
'beef', | ||
'beer', | ||
'behavior', | ||
// 'beer', | ||
// 'behavior', | ||
'biology', | ||
@@ -70,11 +70,11 @@ // 'billiards', | ||
'damage', | ||
// 'damage', | ||
'dancing', | ||
'danger', | ||
// 'danger', | ||
'deer', | ||
'delight', | ||
'dessert', | ||
// 'delight', | ||
// 'dessert', | ||
'dignity', | ||
'dirt', | ||
'distribution', | ||
// 'distribution', | ||
'dust', | ||
@@ -85,7 +85,7 @@ | ||
'electricity', | ||
'employment', | ||
'energy', | ||
// 'employment', | ||
// 'energy', | ||
'engineering', | ||
'enjoyment', | ||
'entertainment', | ||
// 'entertainment', | ||
'envy', | ||
@@ -97,4 +97,4 @@ 'equipment', | ||
'failure', | ||
'faith', | ||
// 'failure', | ||
// 'faith', | ||
'fame', | ||
@@ -106,4 +106,4 @@ 'fiction', | ||
'food', | ||
'freedom', | ||
'fruit', | ||
// 'freedom', | ||
// 'fruit', | ||
'fuel', | ||
@@ -117,5 +117,5 @@ 'fun', | ||
'garlic', | ||
'gas', | ||
// 'gas', | ||
'genetics', | ||
'glass', | ||
// 'glass', | ||
'gold', | ||
@@ -125,10 +125,10 @@ 'golf', | ||
'grammar', | ||
'grass', | ||
// 'grass', | ||
'gratitude', | ||
'grief', | ||
'ground', | ||
// 'ground', | ||
'guilt', | ||
'gymnastics', | ||
'hair', | ||
// 'hair', | ||
'happiness', | ||
@@ -141,3 +141,3 @@ 'hardware', | ||
'heat', | ||
'height', | ||
// 'height', | ||
'help', | ||
@@ -157,5 +157,5 @@ 'homework', | ||
'information', | ||
'injustice', | ||
// 'injustice', | ||
'innocence', | ||
'intelligence', | ||
// 'intelligence', | ||
'iron', | ||
@@ -165,17 +165,17 @@ 'irony', | ||
'jam', | ||
'jealousy', | ||
'jelly', | ||
// 'jealousy', | ||
// 'jelly', | ||
'jewelry', | ||
'joy', | ||
// 'joy', | ||
'judo', | ||
'juice', | ||
'justice', | ||
// 'juice', | ||
// 'justice', | ||
'karate', | ||
'kindness', | ||
// 'kindness', | ||
'knowledge', | ||
'labour', | ||
// 'labour', | ||
'lack', | ||
'land', | ||
// 'land', | ||
'laughter', | ||
@@ -194,3 +194,3 @@ 'lava', | ||
'loneliness', | ||
'love', | ||
// 'love', | ||
'luck', | ||
@@ -202,3 +202,3 @@ 'luggage', | ||
'magic', | ||
'mail', | ||
// 'mail', | ||
'management', | ||
@@ -210,4 +210,4 @@ 'mankind', | ||
'measles', | ||
'meat', | ||
'metal', | ||
// 'meat', | ||
// 'metal', | ||
'methane', | ||
@@ -230,10 +230,10 @@ 'milk', | ||
'obesity', | ||
'oil', | ||
// 'oil', | ||
'oxygen', | ||
'paper', | ||
'passion', | ||
// 'paper', | ||
// 'passion', | ||
'pasta', | ||
'patience', | ||
'permission', | ||
// 'permission', | ||
'physics', | ||
@@ -243,7 +243,7 @@ 'poetry', | ||
'poverty', | ||
'power', | ||
// 'power', | ||
'pride', | ||
'production', | ||
'progress', | ||
'pronunciation', | ||
// 'production', | ||
// 'progress', | ||
// 'pronunciation', | ||
'psychology', | ||
@@ -253,9 +253,9 @@ 'publicity', | ||
'quality', | ||
'quantity', | ||
// 'quality', | ||
// 'quantity', | ||
'quartz', | ||
'racism', | ||
'rain', | ||
'recreation', | ||
// 'rain', | ||
// 'recreation', | ||
'relaxation', | ||
@@ -271,6 +271,6 @@ 'reliability', | ||
'safety', | ||
'salad', | ||
'salt', | ||
'sand', | ||
'satire', | ||
// 'salad', | ||
// 'salt', | ||
// 'sand', | ||
// 'satire', | ||
'scenery', | ||
@@ -283,3 +283,3 @@ 'seafood', | ||
'shopping', | ||
'silence', | ||
// 'silence', | ||
'sleep', | ||
@@ -293,19 +293,19 @@ // 'slang' | ||
'soil', | ||
'sorrow', | ||
'soup', | ||
// 'sorrow', | ||
// 'soup', | ||
'spaghetti', | ||
'speed', | ||
// 'speed', | ||
'species', | ||
'spelling', | ||
'sport', | ||
// 'spelling', | ||
// 'sport', | ||
'steam', | ||
'strength', | ||
// 'strength', | ||
'stuff', | ||
'stupidity', | ||
'success', | ||
'sugar', | ||
// 'success', | ||
// 'sugar', | ||
'sunshine', | ||
'symmetry', | ||
'tea', | ||
// 'tea', | ||
'tennis', | ||
@@ -315,16 +315,16 @@ 'thirst', | ||
'timber', | ||
'time', | ||
'toast', | ||
'tolerance', | ||
'trade', | ||
// 'time', | ||
// 'toast', | ||
// 'tolerance', | ||
// 'trade', | ||
'traffic', | ||
'transportation', | ||
'travel', | ||
// 'travel', | ||
'trust', | ||
'understanding', | ||
// 'understanding', | ||
'underwear', | ||
'unemployment', | ||
'unity', | ||
'usage', | ||
// 'usage', | ||
@@ -337,22 +337,22 @@ 'validity', | ||
'violence', | ||
'vision', | ||
// 'vision', | ||
'vitality', | ||
'warmth', | ||
'water', | ||
// 'water', | ||
'wealth', | ||
'weather', | ||
'weight', | ||
// 'weight', | ||
'welfare', | ||
'wheat', | ||
'whiskey', | ||
'width', | ||
// 'whiskey', | ||
// 'width', | ||
'wildlife', | ||
'wine', | ||
// 'wine', | ||
'wisdom', | ||
'wood', | ||
'wool', | ||
'work', | ||
// 'wood', | ||
// 'wool', | ||
// 'work', | ||
'yeast', | ||
// 'yeast', | ||
'yoga', | ||
@@ -1089,5 +1089,5 @@ | ||
*/ | ||
inflector.version = '1.5.2'; | ||
inflector.version = '1.5.3'; | ||
return inflector; | ||
})); |
{ | ||
"name" : "inflection", | ||
"version" : "1.5.2", | ||
"version" : "1.5.3", | ||
"description": "A port of inflection-js to node.js module", | ||
@@ -23,8 +23,9 @@ "keywords" : [ | ||
{ "name": "Gianni Chiappetta", "email": "gianni@runlevel6.org" }, | ||
{ "name": "Eric Brody" } | ||
{ "name": "Eric Brody" }, | ||
{ "name": "overlookmotel" } | ||
], | ||
"dependencies" : {}, | ||
"devDependencies": { | ||
"mocha" : "1.21.4", | ||
"should": "4.0.4" | ||
"mocha" : "2.0.1", | ||
"should": "4.3.0" | ||
}, | ||
@@ -31,0 +32,0 @@ "main" : "./lib/inflection.js", |
@@ -10,4 +10,6 @@ # inflection | ||
Note: This library uses [Wiktionary](http://en.wiktionary.org) as its reference. | ||
## Requires | ||
@@ -467,2 +469,3 @@ | ||
- Eric Brody | ||
- overlookmotel | ||
@@ -469,0 +472,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
496
56567
1084