public static function percentageWordsWithThreeSyllables($strText, $blnCountProperNouns = true, $strEncoding = '')
    {
        $intWordCount = Text::wordCount($strText, $strEncoding);
        $intLongWordCount = self::wordsWithThreeSyllables($strText, $blnCountProperNouns, $strEncoding);
        $intPercentage = Maths::bcCalc(Maths::bcCalc($intLongWordCount, '/', $intWordCount), '*', 100);

        return $intPercentage;
    }
public static function percentageWordsWithThreeSyllables($strText, $blnCountProperNouns = true, $strEncoding = '')
    {
        $intWordCount = Text::wordCount($strText, $strEncoding);
        $intLongWordCount = self::wordsWithThreeSyllables($strText, $blnCountProperNouns, $strEncoding);
        $intPercentage = Maths::bcCalc(Maths::bcCalc($intLongWordCount, '/', $intWordCount), '*', 100);

        return $intPercentage;
    }
public static function percentageWordsWithThreeSyllables ( $ strText , $ blnCountProperNouns = true , $ strEncoding = '' ) { $ intWordCount = Text :: wordCount ( $ strText , $ strEncoding ) ; $ intLongWordCount = self :: wordsWithThreeSyllables ( $ strText , $ blnCountProperNouns , $ strEncoding ) ; $ intPercentage = Maths :: bcCalc ( Maths :: bcCalc ( $ intLongWordCount , '/' , $ intWordCount ) , '*' , 100 ) ; return $ intPercentage ; }
Returns the percentage of words with more than three syllables
@param   string  $strText      Text to be measured
@param   bool    $blnCountProperNouns      Boolean - should proper nouns be included in words count
@return  int|float
Returns the percentage of words with more than three syllables