public static double colemanLiauIndex ( String strText ) { strText = cleanText ( strText ) ; int intWordCount = wordCount ( strText ) ; return PHPMethods . round ( ( ( 5.89 * ( letterCount ( strText ) / ( double ) intWordCount ) ) - ( 0.3 * ( sentenceCount ( strText ) / ( double ) intWordCount ) ) - 15.8 ) , 1 ) ; }
Returns the Coleman - Liau Index of text entered rounded to one digit .