syllabize 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/syllabize.rb CHANGED
@@ -15,7 +15,7 @@ module Syllabize
15
15
  CONSONANTS = /[bcdfghjklmnpqrstvwxz]/i
16
16
  VOWELS = /[aeiou]/i
17
17
  LE_VOWEL_SOUND = /((le)\z)|((le(d|r|s))|(ling)\z)/i
18
- DIPHTHONGS = /ou|ie|oo|oi|ea|ee|ai|ae/i
18
+ DIPHTHONGS = /ou|ie|oo|oi|ea|ee|ai|ae|ay/i
19
19
  Y_AS_VOWEL = /[^yY][yY]/
20
20
  RE_VOWEL = /(^re[aeiou])/i
21
21
 
@@ -1,3 +1,3 @@
1
1
  module Syllabize
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -111,6 +111,7 @@ describe Syllabize::Counter do
111
111
  'realize' => 3,
112
112
  'really' => 2,
113
113
  'cooperate' => 4,
114
+ 'ways' => 1
114
115
  }.each do |word, syllable_count|
115
116
  expect(Syllabize::Counter.new(word).count_syllables).to eq(syllable_count), "#{word} was not the correct number of syllables"
116
117
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syllabize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: