@Test public void testColeman_liau_index() { logger.info("coleman_liau_index"); String strText = TEST_STRING; double expResult = 6.8; double result = ReadabilityStatistics.colemanLiauIndex(strText); assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH); }
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); }
ReadabilityStatistics { 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); } }
ReadabilityStatistics { 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); }  }
ReadabilityStatistics { 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); }  static double fleschKincaidReadingEase(String strText); static double fleschKincaidGradeLevel(String strText); static double gunningFogScore(String strText); static double colemanLiauIndex(String strText); static double smogIndex(String strText); static double automatedReadabilityIndex(String strText); static double daleChallScore(String strText); static double daleChallGrade(String strText); static double spacheScore(String strText); }
ReadabilityStatistics { 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); }  static double fleschKincaidReadingEase(String strText); static double fleschKincaidGradeLevel(String strText); static double gunningFogScore(String strText); static double colemanLiauIndex(String strText); static double smogIndex(String strText); static double automatedReadabilityIndex(String strText); static double daleChallScore(String strText); static double daleChallGrade(String strText); static double spacheScore(String strText);  }