private static double percentageWordsWithThreeSyllables ( String strText ) { int intWordCount = wordCount ( strText ) ; int intLongWordCount = wordsWithThreeSyllables ( strText ) ; double percentage = ( ( intLongWordCount / ( double ) intWordCount ) * 100.0 ) ; return percentage ; }
Returns the percentage of words with more than three syllables .