Package org.apache.sling.cms.readability
Interface ReadabilityService
public interface ReadabilityService
Service for calculating the readability of text
-
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateARI(String text) Calculates Automated Readability Index for textdoublecalculateARI(Text text) Calculates Automated Readability Index for textdoubleCalculates the average grade leveldoubleCalculates the average grade leveldoubleCalculates Coleman-Liau Index for textdoubleCalculates Coleman-Liau Index for textdoubleCalculates Flesch-Kincaid Readability for textdoubleCalculates Flesch-Kincaid Readability for textdoubleCalculates Flesch-Kincaid Reading Ease for textdoubleCalculates Flesch-Kincaid Reading Ease for textdoublecalculateGunningFog(String text) Calculates Gunning-Fog Index for textdoublecalculateGunningFog(Text text) Calculates Gunning-Fog Index for textdoublecalculateSMOG(String text) Calculates Simple Measure of Gobbledygook Grade for textdoublecalculateSMOG(Text text) Calculates Simple Measure of Gobbledygook Grade for textextractSentences(String text) Extracts the sentences from the text including the words and various counts.Gets the locale for this configuration.
-
Method Details
-
calculateARI
Calculates Automated Readability Index for text- Parameters:
text- the text string to analyze- Returns:
- the Automated Readability Index for text
-
calculateARI
Calculates Automated Readability Index for text- Parameters:
text- the analyzed text- Returns:
- the Automated Readability Index for text
-
calculateAverageGradeLevel
Calculates the average grade level- Parameters:
text- the text string to analyze- Returns:
- the average grade level for text
-
calculateAverageGradeLevel
Calculates the average grade level- Parameters:
text- the analyzed text- Returns:
- the average grade level for text
-
calculateColemanLiauIndex
Calculates Coleman-Liau Index for text- Parameters:
text- the text string to analyze- Returns:
- the Coleman-Liau Index for text
-
calculateColemanLiauIndex
Calculates Coleman-Liau Index for text- Parameters:
text- the text string to analyze- Returns:
- the Coleman-Liau Index for text
-
calculateFleschKincaidGradeLevel
Calculates Flesch-Kincaid Readability for text- Parameters:
text- the text string to analyze- Returns:
- Returns the Flesch-Kincaid Readability value for the text
-
calculateFleschKincaidGradeLevel
Calculates Flesch-Kincaid Readability for text- Parameters:
text- the text string to analyze- Returns:
- the Flesch-Kincaid Readability value for the text
-
calculateFleschReadingEase
Calculates Flesch-Kincaid Reading Ease for text- Parameters:
text- the text string to analyze- Returns:
- the Flesch-Kincaid Reading Ease value for the text
-
calculateFleschReadingEase
Calculates Flesch-Kincaid Reading Ease for text- Parameters:
text- the text string to analyze- Returns:
- the Flesch-Kincaid Reading Ease value for the text
-
calculateGunningFog
Calculates Gunning-Fog Index for text- Parameters:
text- the text string to analyze- Returns:
- the Gunning-Fog Index for text
-
calculateGunningFog
Calculates Gunning-Fog Index for text- Parameters:
text- the text string to analyze- Returns:
- the Gunning-Fog Index for text
-
calculateSMOG
Calculates Simple Measure of Gobbledygook Grade for text- Parameters:
text- the text string to analyze- Returns:
- the SMOG value for the text
-
calculateSMOG
Calculates Simple Measure of Gobbledygook Grade for text- Parameters:
text- the text string to analyze- Returns:
- the SMOG value for the text
-
extractSentences
Extracts the sentences from the text including the words and various counts.- Parameters:
text- the text to analyze- Returns:
- the analyzied text
-
getLocale
Locale getLocale()Gets the locale for this configuration.- Returns:
- the locale
-