This page demonstrates a simple text analysis scenario: computing the Flesch Index (aka Flesch-Kincaid Reading Ease test), a numeric score that indicates the readability of a text. The lower the score, the more difficult the text. The higher, the easier. For example, texts with a score of 90-100 are, say, around the 5th grade level, wheras 0-30 would be for “college graduates”.
The Flesch Index is computed as a function of total words, total sentences, and total syllables. It was developed by Dr. Rudolf Flesch and modified by J. P. Kincaid (thus the joint name). The formula is as follows:
$$Flesch Index = 206.835 - 1.015 \times (words \div sentences) + 84.6 \times (syllables \div words)$$
use text sample