How can I Count every word with three or more syllables in eachHow can I Count every word with three or more syllables in each
How can I Count every word with three or more syllables in each group of sentences, even if the same word appears more than once.
Count every word with three or more syllables in each group of sentences, even if the same word appears more than once from a text file
syllables means a unit of pronunciation having one vowel sound, with or without surrounding consonants, forming the whole or a part of a word;
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
The only way you can do this is by using a database of word-syllable. Here’s one way using www.dictionary.com as the database.
FullText = 'This is a really arbitrary sentence.';
%'really' could be pronounced 'ree-uh-lee' (3 syl)TextCell = regexp(FullText, '\w+', 'match');
TextSyl = cellfun(@(x) getSyllable(x), TextCell);
TextSyl =
1 1 1 3 4 2 OneSylWord = sum(TextSyl == 1);
OneSylWord =
3
Where getSyllable function is:
SEE COMPLETE ANSWER CLICK THE LINK