syllabize 0.3.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/syllabize.rb +1 -1
- data/lib/syllabize/version.rb +1 -1
- data/spec/lib/syllabize_spec.rb +1 -0
- metadata +1 -1
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
|
|
data/lib/syllabize/version.rb
CHANGED
data/spec/lib/syllabize_spec.rb
CHANGED
@@ -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
|