Split
Remove punctuation
We will say that a sentence has occurred any time that one of its raw words ends in aperiod . question mark ? or exclamation point ! Note that this means that a plainperiod, question mark, or exclamation point counts as a sentence.
A vowel is a capital or lowercase a, e, i, o, u, or y.
A syllable occurs in a punctuation-stripped word whenever:
Rule 1: a vowel is at the start of a word
Rule 2: a vowel follows a consonant in a word
Rule 3: there is one exception: if a lone vowel e or E is at the end of a (punctuation-stripped) word, then that vowel does not count as a syllable.
Rule 4: finally, everything that is a word must always count as having at least onesyllable.