@Test public void testAutomated_readability_index() { logger.info("automated_readability_index"); String strText = TEST_STRING; double expResult = 143.2; double result = ReadabilityStatistics.automatedReadabilityIndex(strText); assertEquals(expResult, result, Constants.DOUBLE_ACCURACY_HIGH); }
public static double automatedReadabilityIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round(((4.71 * (letterCount(strText) / (double)intWordCount)) + (0.5 * (intWordCount / (double)sentenceCount(strText))) - 21.43), 1); }
ReadabilityStatistics { public static double automatedReadabilityIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round(((4.71 * (letterCount(strText) / (double)intWordCount)) + (0.5 * (intWordCount / (double)sentenceCount(strText))) - 21.43), 1); } }
ReadabilityStatistics { public static double automatedReadabilityIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round(((4.71 * (letterCount(strText) / (double)intWordCount)) + (0.5 * (intWordCount / (double)sentenceCount(strText))) - 21.43), 1); }  }
ReadabilityStatistics { public static double automatedReadabilityIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round(((4.71 * (letterCount(strText) / (double)intWordCount)) + (0.5 * (intWordCount / (double)sentenceCount(strText))) - 21.43), 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 automatedReadabilityIndex(String strText) { strText = cleanText(strText); int intWordCount = wordCount(strText); return PHPMethods.round(((4.71 * (letterCount(strText) / (double)intWordCount)) + (0.5 * (intWordCount / (double)sentenceCount(strText))) - 21.43), 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);  }