com.datumbox.framework.core.common.text.analyzers
Class ReadabilityStatistics
- java.lang.Object
-
- com.datumbox.framework.core.common.text.analyzers.ReadabilityStatistics
-
public class ReadabilityStatistics extends java.lang.ObjectThis class provides a list of methods which can be used to estimate the readability of a text. The methods are ported from PHP code: https://github.com/DaveChild/Text-Statistics
-
-
Constructor Summary
Constructors Constructor and Description ReadabilityStatistics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static doubleautomatedReadabilityIndex(java.lang.String strText)Returns the Automated Readability Index of text entered rounded to one digit.static doublecolemanLiauIndex(java.lang.String strText)Returns the Coleman-Liau Index of text entered rounded to one digit.static doubledaleChallGrade(java.lang.String strText)Returns the Dale Chall Grade of the text.static doubledaleChallScore(java.lang.String strText)Returns the Dale Chall Score of the text.static doublefleschKincaidGradeLevel(java.lang.String strText)Returns the Flesch-Kincaid Grade level of text entered rounded to one digit.static doublefleschKincaidReadingEase(java.lang.String strText)Returns the Flesch-Kincaid Reading Ease of text entered rounded to one digit.static doublegunningFogScore(java.lang.String strText)Returns the Gunning-Fog score of text entered rounded to one digit.static doublesmogIndex(java.lang.String strText)Returns the SMOG Index of text entered rounded to one digit.static doublespacheScore(java.lang.String strText)Returns the Spache Score of the text.
-
-
-
Method Detail
-
fleschKincaidReadingEase
public static double fleschKincaidReadingEase(java.lang.String strText)
Returns the Flesch-Kincaid Reading Ease of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
fleschKincaidGradeLevel
public static double fleschKincaidGradeLevel(java.lang.String strText)
Returns the Flesch-Kincaid Grade level of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
gunningFogScore
public static double gunningFogScore(java.lang.String strText)
Returns the Gunning-Fog score of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
colemanLiauIndex
public static double colemanLiauIndex(java.lang.String strText)
Returns the Coleman-Liau Index of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
smogIndex
public static double smogIndex(java.lang.String strText)
Returns the SMOG Index of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
automatedReadabilityIndex
public static double automatedReadabilityIndex(java.lang.String strText)
Returns the Automated Readability Index of text entered rounded to one digit.- Parameters:
strText- Text to be checked- Returns:
-
daleChallScore
public static double daleChallScore(java.lang.String strText)
Returns the Dale Chall Score of the text.- Parameters:
strText-- Returns:
-
daleChallGrade
public static double daleChallGrade(java.lang.String strText)
Returns the Dale Chall Grade of the text.- Parameters:
strText-- Returns:
-
spacheScore
public static double spacheScore(java.lang.String strText)
Returns the Spache Score of the text.- Parameters:
strText-- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG