How long the words and sentences of a passage run
Words are letters with edge punctuation removed and case folded. A vowel group is a maximal run of a, e, i, o, u, or y. That count is not a syllable and not a readability score. Syllables start from the vowel groups and take three stated ending rules, and the Flesch reading ease and the Flesch-Kincaid grade are computed from them. Digits are refused. No grammar judgment is defined.
The result appears here when the page script runs.
How it is computed
Method
Sentences split on periods, question marks, and exclamation marks. A word is a run of letters after edge punctuation is removed, then case is folded. Mean length is words over sentences. The type-token ratio is the number of distinct words over the word count. A repeated phrase is a bigram that occurs at least twice. Vowel groups are maximal runs of aeiouy.
Syllables and the two formulas
Syllables start from the vowel groups of each word. A word with two or more groups gives one back for a silent ending: a final e after a consonant, unless the word ends in a consonant and le (line, not sample); a final ed after a consonant other than t or d (jumped, not wanted); a final es after a consonant other than s, x, z, c, g, or the h of ch and sh, unless the word ends in a consonant and les (lines, not boxes or tables). Every word counts at least one syllable.
Flesch reading ease = 206.835 - 1.015 × (words / sentences) - 84.6 × (syllables / words)
Flesch-Kincaid grade = 0.39 × (words / sentences) + 11.8 × (syllables / words) - 15.59
The coefficients are Rudolf Flesch's 1948 reading ease and the 1975 grade formula of Kincaid and colleagues. Both are kept as exact fractions and rounded half away from zero to two places. A word is unsettled when it is written in capitals (two or more letters, all upper case), carries a letter outside a to z, or has no vowel group. Unsettled words still count by the rules, at least one syllable each. When more than one word in ten is unsettled, both scores are withheld and the result names the reason.
Assumptions
The passage is the whole input. A sentence with no letters is dropped. y is treated as a vowel for this count, and the page says so.
Limits
The two scores read sentence length in words and word length in syllables, and nothing else in the passage.
Reproducibility
The inputs are kept in the address bar, so the same link reruns the same calculation.