diff --git a/index.js b/index.js index e8e1ac2..d1af09d 100644 --- a/index.js +++ b/index.js @@ -133,7 +133,8 @@ var EXPRESSION_DOUBLE_SYLLABIC_THREE = new RegExp( 'io', 'ii', 'uen', - 'real', + '[aeilotu]real', + 'real[aeilotu]', 'iell', 'eo[^aeiou]', '[aeiou]y[aeiou]' diff --git a/test/index.js b/test/index.js index 7ebf01a..3413780 100644 --- a/test/index.js +++ b/test/index.js @@ -38,6 +38,10 @@ test('api', function(t) { t.equal(syllable('Snuffleupagus'), 5, 'GH-25 (snuffleupagus)') t.equal(syllable('queue'), 1, 'GH-26 (queue)') + t.equal(syllable('real'), 1, 'GH-31 (real/deal/really)') + t.equal(syllable('deal'), 1, 'GH-31 (real/deal/really)') + t.equal(syllable('really'), 2, 'GH-31 (real/deal/really)') + t.end() })