Hi all. I need help to write a code which will count the number of words of 3 syllables. I've been able to write the code for counting number of words, and counting number of syllables in a text. However I have tried and written a code for the above without success.
Useful part of code counting number of words.
Dim count as Integer
count = Split(str, Space(1)).Length
MessageBox.Show("No. of words: " & count.ToString())
Useful part of code counting syllables.
Dim str As String = textbox1.Text
Dim pattern As String = "[aeiouy]+"
Dim count As Integer = Regex.Matches(str, pattern).Count
MessageBox.Show("No. of syllables: " & count.ToString())
I want to count number of words of specific number of syllables. Can anybody help?