Documentation of 'com.datumbox.framework.core.common.text.analyzers.ReadabilityStatistics' Java class
ReadabilityStatistics
com.datumbox.framework.core.common.text.analyzers

Class ReadabilityStatistics



  • public class ReadabilityStatistics
    extends java.lang.Object
    This 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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static double automatedReadabilityIndex(java.lang.String strText)
      Returns the Automated Readability Index of text entered rounded to one digit.
      static double colemanLiauIndex(java.lang.String strText)
      Returns the Coleman-Liau Index of text entered rounded to one digit.
      static double daleChallGrade(java.lang.String strText)
      Returns the Dale Chall Grade of the text.
      static double daleChallScore(java.lang.String strText)
      Returns the Dale Chall Score of the text.
      static double fleschKincaidGradeLevel(java.lang.String strText)
      Returns the Flesch-Kincaid Grade level of text entered rounded to one digit.
      static double fleschKincaidReadingEase(java.lang.String strText)
      Returns the Flesch-Kincaid Reading Ease of text entered rounded to one digit.
      static double gunningFogScore(java.lang.String strText)
      Returns the Gunning-Fog score of text entered rounded to one digit.
      static double smogIndex(java.lang.String strText)
      Returns the SMOG Index of text entered rounded to one digit.
      static double spacheScore(java.lang.String strText)
      Returns the Spache Score of the text.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReadabilityStatistics

        public ReadabilityStatistics()
    • 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

You see the box below because you did not login.