public class ReadabilityMeasures extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ReadabilityMeasures.Measures |
Constructor and Description |
---|
ReadabilityMeasures() |
ReadabilityMeasures(String language) |
Modifier and Type | Method and Description |
---|---|
double |
ari(List<String> words,
int nrofSentences)
Calculate Automated Readability Index (reading grade).
|
double |
coleman_liau(List<String> words,
int nrofSentences)
Calculate Coleman-Liau formula.
|
double |
flesch(List<String> words,
int nrofSentences)
Calculate Flesch reading ease score.
|
double |
fog(List<String> words,
int nrofSentences)
Calculate FOG index.
|
String |
getLanguage() |
double |
getReadabilityScore(ReadabilityMeasures.Measures measure,
List<String> words,
int nrofSentences) |
double |
kincaid(List<String> words,
int nrofSentences)
Calculate Kincaid Formula (reading grade).
|
double |
lix(List<String> words,
int nrofSentences)
Calculate Björnsson's Lix formula.
|
void |
setLanguage(String language) |
double |
smog(List<String> words,
int nrofSentences)
Calculate SMOG-Grading.
|
public ReadabilityMeasures()
public ReadabilityMeasures(String language)
public double getReadabilityScore(ReadabilityMeasures.Measures measure, List<String> words, int nrofSentences)
public double kincaid(List<String> words, int nrofSentences)
words
- wordsnrofSentences
- number of sentences.public double ari(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public double coleman_liau(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public double flesch(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public double fog(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public double lix(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public double smog(List<String> words, int nrofSentences)
words
- words.nrofSentences
- number of sentences.public String getLanguage()
public void setLanguage(String language)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.