Given a text. The task is to count number of syllables in text.
Definition of a syllable :- A contiguous sequence of vowels, except for an "e" at the end of a word if the word has another set of contiguous vowels, makes up one syllable. y is considered a vowel. For example, the word water is composed of two syllables: wa and ter.
The first line contains a single integer T denoting the number of test cases. Then T test cases follow. Each test case consists of a single line which contains a text.
Corresponding to each test case, print number of syllables.
1 <=T<= 10
1 <= |text| <= 250
where |text| denoted the length of text
many Syyyyyyyyyyyylableeeeeses are
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.