I think it's because of // Count multiple consonants. parts = value.split(/[^aeiouy]+/) and ay is counted as a vowel split, so we ended up with parts [ 'o', 'e', 'ay' ] There's no consonant before the o.
I think it's because of
// Count multiple consonants.
parts = value.split(/[^aeiouy]+/)
and ay is counted as a vowel split, so we ended up with
parts [ 'o', 'e', 'ay' ]
There's no consonant before the o.