Comparing version 4.0.1 to 4.1.0
@@ -24,6 +24,3 @@ #!/usr/bin/env node | ||
function getSyllables(value) { | ||
value = value | ||
.split(/\s+/g) | ||
.map(trim) | ||
.filter(Boolean) | ||
value = value.split(/\s+/g).map(trim).filter(Boolean) | ||
@@ -30,0 +27,0 @@ if (value.length === 0) { |
10
index.js
@@ -78,3 +78,3 @@ 'use strict' | ||
'mm', | ||
'n[cgn]', | ||
'n[cgns]', | ||
'r[cnsv]', | ||
@@ -110,2 +110,3 @@ 'squ', | ||
'orbed', // Cancel `'.[^aeiuoycgltdb]{2,}ed$',` | ||
'shred', // Cancel `'.[^aeiuoycgltdb]{2,}ed$',` | ||
'eings?', | ||
@@ -124,3 +125,4 @@ '[aeiouy]sh?e[rs]' | ||
'^(?:ia|mc|coa[dglx].)', | ||
'^re(app|es|im|us)' | ||
'^re(app|es|im|us)', | ||
'(th|d)eist' | ||
].join('|'), | ||
@@ -186,3 +188,3 @@ 'g' | ||
'shires?', | ||
'tion(?:ed|s)?' | ||
'[gnst]ion(?:ed|s)?' | ||
].join('|') + | ||
@@ -225,3 +227,3 @@ ')$' | ||
')', | ||
'(?:fully|berry|woman|women|edly)$' | ||
'(?:fully|berry|woman|women|edly|union|((?:[bcdfghjklmnpqrstvwxz])|[aeiou])ye?ing)$' | ||
].join('|'), | ||
@@ -228,0 +230,0 @@ 'g' |
{ | ||
"name": "syllable", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Count syllables in English words", | ||
@@ -38,8 +38,8 @@ "license": "MIT", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-wooorm": "^7.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"xo": "^0.25.0" | ||
"xo": "^0.29.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
@@ -13,2 +13,3 @@ { | ||
"anemone": 4, | ||
"anyone": 3, | ||
"apache": 3, | ||
@@ -41,2 +42,3 @@ "aphrodite": 4, | ||
"maybe": 2, | ||
"naive": 2, | ||
"newlywed": 3, | ||
@@ -43,0 +45,0 @@ "penelope": 4, |
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
16512
434