|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoj.lang.Readability
public class Readability
Constructor Summary | |
---|---|
Readability()
|
Method Summary | |
---|---|
static float |
calcLIX(java.lang.String text)
Calculate the LIX value for a given String of text.LIX is a Swedish acronym for "Läsbarhetsindex", or Readability Index, and is a much disputed measure of how accessible a text is. |
static float |
calcLIX(java.lang.String text,
GenericTokenizer gt)
Calculate the LIX value for a given String of text using
the provided GenericTokenizer for splitting the text into
sentences and words. |
static float |
calcLIX(java.lang.String text,
GenericTokenizer gt,
boolean verbose)
Calculate the LIX value for a given String of text using
the provided GenericTokenizer for splitting the text into
sentences and words. |
static float |
calcSMOG(java.lang.String text)
|
static float |
calcSMOG(java.lang.String text,
GenericTokenizer gt)
|
static int |
calcSyllables(java.lang.String word)
Note that this is not infallible. |
static void |
main(java.lang.String[] args)
Usage: moj.lang.Readability <file> <file> : text file to calculate LIX for |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Readability()
Method Detail |
---|
public static float calcLIX(java.lang.String text)
String
of text.
text
- String
to calculate LIX for
String
public static float calcLIX(java.lang.String text, GenericTokenizer gt)
String
of text using
the provided GenericTokenizer
for splitting the text into
sentences and words.
text
- String
to calculate LIX forgt
- GenericTokenizer
to use for tokenizing the text
String
public static float calcLIX(java.lang.String text, GenericTokenizer gt, boolean verbose)
String
of text using
the provided GenericTokenizer
for splitting the text into
sentences and words.
text
- String
to calculate LIX forgt
- GenericTokenizer
to use for tokenizing the textverbose
- true
prints the underlying statistics for for
the LIX calculation, false
does not
String
public static float calcSMOG(java.lang.String text)
public static float calcSMOG(java.lang.String text, GenericTokenizer gt)
public static int calcSyllables(java.lang.String word)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |