Measure average words per sentence while accounting for punctuation traps.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Text is segmented into sentences using terminal punctuation and boundary heuristics, then word counts are divided by sentence counts to produce an average length. Abbreviations, decimals, and quoted punctuation require exceptions to avoid false boundaries.
Short. This one is a bit longer. And this third sentence is the longest of them all here.
Sentence 1 (1 words): Short. Sentence 2 (6 words): This one is a bit longer. Sentence 3 (11 words): And this third sentence is the longest of them all here.
Editing, technical style reviews, and readability reports measure sentence length.