The SMOG index is calculated with the formula 1.043 × √(polysyllables × 30 / sentences) + 3.1291, where polysyllables are words of three or more syllables counted in a sample of at least 30 sentences. To apply it to speech in Python, you transcribe the audio, split it into sentences, run syllable counting on each word, and feed the totals into that formula. The key condition is sample size: SMOG was validated on written text of 30 sentences or more, so a one-paragraph speech sample produces an unstable, often inflated figure. Short samples need adjustment or honest labeling, not silent rounding.

That distinction matters because people usually ask this question with a transcript in hand, perhaps a conference talk, a podcast episode, or a patient-education script, and they want a defensible number. The mechanics are easy; the judgment calls are where the errors live. The sections below cover the formula and its history, syllable counting that works beyond spelling, sentence segmentation for speech-like text, a complete script, why short transcripts mislead, and how to interpret results against plain-language standards.

What the SMOG formula actually measures and where it came from

SMOG stands for Simple Measure of Gobbledygook, published by G. Harry McLaughlin in 1969 in the Journal of Reading. McLaughlin designed it as a faster, more reliable alternative to earlier readability formulas, and he calibrated it on multiple-choice comprehension tests. The standard version estimates the grade level a reader needs to understand a passage on first reading. The full formula is:

grade = 1.043 × sqrt(polysyllables × (30 / sentences)) + 3.1291

Three inputs feed it: the total sentence count, the total polysyllable count, and the sample size assumption baked into the 30. Polysyllables are words with three or more syllables. The 3.1291 constant is the intercept from McLaughlin's regression; the 1.043 is the slope. Some references round these to 1.04 and 3.13, which shifts results by a fraction of a grade level and doesn't matter for practical interpretation.

A widely used shortcut, sometimes called the SMOG single-sample method, counts polysyllables in exactly 10 consecutive sentences and takes the square root, then adds 3:

grade ≈ sqrt(polysyllables in 10 sentences) + 3

This version is popular because it needs no division and is easy to do by hand. It's roughly equivalent when the 10 sentences are representative, but it throws away the sample-size correction, so it inherits all the instability problems discussed later. In code, implement the full formula and treat the shortcut as a sanity check, not the primary output.

One more definition worth pinning down: some implementations report a "SMOG index score" as the raw formula output and a "SMOG grade" as that value rounded up to the nearest integer. Grade levels are conventionally rounded up because a text scored at 9.2 should be treated as requiring grade 10, since grade 9 readers haven't reached it. Keep raw and rounded values separate in your output so downstream users know which they're seeing.

Why speech needs more preprocessing than an essay

If you paste a transcript into a readability calculator built for essays, you're feeding it text that has already lost half its structure. Speech-to-text output typically arrives as a wall of words with unreliable punctuation, filler words, false starts, and no paragraph boundaries. Readability formulas assume sentences are identifiable units terminated by periods, question marks, or exclamation points. When a transcriber guesses at punctuation, every downstream count inherits that guess.

A few speech-specific complications deserve handling:

Filler words and disfluencies. "Um," "uh," "you know," and "like" add words and sometimes syllables without adding comprehension load. Most practitioners strip obvious fillers before scoring, but do so deliberately and document it, because stripping changes both the sentence and polysyllable counts. Spoken sentences are shorter. Conversational speech averages much shorter sentences than written prose, and sentence length feeds the denominator. A transcript with genuine short sentences will score lower than the same content rewritten as long written paragraphs. Numbers, acronyms, and jargon. "2026" is spoken as "twenty twenty-six" (four syllables, and therefore polysyllabic) but written as one token that a naive syllable counter reads as one or two syllables. Medical and technical speeches are full of such traps. Repetition. Speakers repeat phrases for emphasis or because a slide is on screen; those repetitions inflate or deflate counts depending on what's repeated.

The practical principle: get a clean, punctuated transcript from a human or a good ASR system, apply a documented normalization step, and then run the formula. Don't skip the normalization step and pretend the raw ASR output is prose.

Setting up the Python environment and inputs

You need Python 3.9 or newer for the script below. Two packages are genuinely useful and one is optional:

pyphen for syllable counting via hyphenation dictionaries, which handles English spelling irregularities far better than counting vowel groups. nltk for sentence tokenization, specifically the Punkt tokenizer, or a similar rule-based splitter. Optionally num2words to convert digits into spoken form before syllable counting.

Install them with pip:

After installing nltk, download the Punkt data once:

If you'd rather avoid a download, you can substitute a regex splitter on sentence-ending punctuation, but it mishandles abbreviations like "Dr." and "e.g." The Punkt tokenizer handles those cases well out of the box, which matters for formal speeches.

Your input should be a UTF-8 text file containing the transcript, punctuated. Whisper-based ASR systems, common by 2026, produce reasonable punctuation for clear audio; check a few paragraphs by eye before trusting them. If you're scoring a live recording, run the ASR first and review the transcript, especially around numbers and names.

Counting syllables reliably, including the words that break naive rules

A naive syllable counter that counts vowel groups fails on a lot of English: "every" gets three syllable groups but is two syllables ("ev-ry"), "queue" has four vowels and one syllable, "fire" is often one syllable in American speech but two in British. Since the whole index hinges on polysyllable counts, syllable accuracy directly changes the result.

The most robust free approach uses pyphen, which wraps hyphenation dictionaries derived from TeX patterns. Hyphenation points approximate syllable boundaries well for most English words. One nuance: pyphen hyphenates "every" as "ev-ery" (two parts), which is correct for our purposes. For a word, the number of syllables is the number of hyphenation segments.

Here's a function that combines pyphen with a small dictionary of exceptions and a fallback:

Two things to note. First, strip non-letters before lookup so "don't" becomes "dont" and scores as one syllable, which is correct. Second, the light correction for long vowel-heavy words is a heuristic; it's there because pyphen sometimes returns one segment for words like "beautifully" variants it doesn't know. Test the function against a list of your domain's frequent words before trusting aggregate counts. For a medical talk, check every drug and procedure name manually.

If you need higher accuracy, cmudict from the nltk corpus provides phoneme transcriptions with vowel nuclei, which is the gold standard for American English pronunciation. Its limitation is that it's pronunciation-based and dictionary-bound, so out-of-vocabulary words fall through. For most speech-scoring jobs, pyphen plus overrides is adequate; for research-grade work, cmudict plus a fallback is better.

Segmenting speech transcripts into sentences

Sentence count is the weakest link in speech scoring. A transcript with run-on sentences (common when a speaker talks without pauses the ASR recognizes) will undercount sentences and inflate the grade. Here's a straightforward tokenizer step:

For speech, add cleanup before tokenizing: collapse whitespace, normalize quotes, and decide how to handle fillers. A conservative filler list for stripping is "um," "uh," "erm," "hmm," and "mm." Leave "you know" and "like" alone unless your methodology says otherwise, because they can be meaningful content in some registers. Then apply a minimum sentence length filter, dropping fragments under, say, three words, since ASR often emits stray fragments like "Right." or "Okay." that are not comprehension-bearing sentences. Document the threshold; a three-word minimum is a judgment call, not a law.

The check that matters: print a sample of sentences with their word and syllable counts and read them. If your tokenizer is splitting mid-sentence at an abbreviation or failing to split at a question mark, you'll see it immediately in a 20-sentence spot check.

A complete, runnable script

The script below reads a text file, normalizes fillers, tokenizes sentences, counts polysyllables, and prints the full SMOG result with the 10-sentence shortcut alongside it for comparison.

Run it with python smog.py talk.txt. A successful run prints a dictionary with sentence, word, and polysyllable counts plus both grade values. Check success by verifying that the counts look plausible against your own sample count: open the transcript, count sentences in the first paragraph by hand, and confirm the script agrees. If sentence counts are wildly off, inspect the tokenizer output before touching the formula.

The failure modes to recognize: zero sentences returned (empty file or a tokenizer exception upstream), a polysyllable count exceeding the word count (impossible, so a syllable function bug), and grade values above 20 (usually a very short transcript, discussed next).

Why short transcripts produce inflated and unstable scores

The 30/sentences term is where SMOG punishes small samples. Suppose a 12-sentence clip contains 14 polysyllables. The formula gives 1.043 × √(14 × 30/12) + 3.1291, which equals 1.043 × √35 + 3.1291 ≈ 6.17 + 3.13 = 9.3. Now suppose your polysyllable count was off by two in either direction, a realistic error for 14 hard words. At 12 polysyllables the score drops to about 8.7; at 16 it rises to about 9.8. A two-word counting error moves the grade by nearly a full level. With 30 or more sentences, the same absolute error moves the score by roughly half a level. SMOG's own documentation warns that samples under 30 sentences are unreliable.

There's a second compression problem. Because the formula divides 30 by the sentence count, very short samples get a large multiplier and nearly always score high. A 5-sentence excerpt with 6 polysyllables yields 1.043 × √36 + 3.1291 ≈ 6.26 + 3.13 = 9.4, even if those sentences are simple. This is why SMOG is famous for overestimating short passages and why some practitioners report implausible "grade 14" scores for a single paragraph.

Practical options when you only have a short transcript:

1: Collect more text. Scrape the full talk, interview series, or several documents from the same speaker. Volume solves the statistical problem better than any adjustment. 2: Report the raw number with a stated caveat and the exact sentence count, so readers can judge reliability. 3: Use a short-sample formula instead. The Fry graph and the Flesch formulas behave differently on short texts; if you need a defensible number under 30 sentences, say which formula you used and why. Don't relabel a SMOG score as "SMOG" if you applied an ad hoc correction. 4: Treat the 10-sentence shortcut as provisional only. It's built for quick field use, not for statements about an entire speaker's complexity.

A worked sensitivity check is worth building once: score the first 10, 20, and 30 sentences of a long transcript separately. Watching the grade settle as sentence count grows tells you how much of your short-sample result was noise.

Interpreting the grade, the plain-language target, and boundaries of the method

SMOG returns a US grade level, meaning the years of schooling a reader typically needs. A score of 13 suggests first-year college reading; 8 suggests eighth grade. A common plain-language benchmark in US health communication is roughly eighth grade or lower, though specific agencies set their own targets and you should check the governing standard for your context. SMOG tends to run one to two grade levels higher than Flesch-Kincaid for the same text, largely because it counts every polysyllable, including proper nouns and technical terms, while Flesch-Kincaid weights sentence length heavily. Comparing a SMOG score to a Flesch-Kincaid score on the same speech and expecting them to match is a category error; they answer related but different questions.

For speech specifically, remember what the number does not capture: rate of delivery, intonation, visual aids, repetition, and audience familiarity with jargon. A technical talk with a SMOG of 12 may be perfectly comprehensible to a specialized audience. The index measures textual complexity, not communicative success, so frame results as one signal among several.

Validation is also worth stating plainly. SMOG was calibrated on written passages with comprehension questions; applying it to transcribed speech is an extension, not a validated use. Researchers do it routinely, but reports should name the method and note the transcription and normalization steps, because a different transcription changes the score.

Practical checklist and common failure cases

Before trusting any number, run this sequence:

1: Confirm the transcript is punctuated and that sentence counts look right on a hand check. 2: Verify syllable counts for the ten most frequent long words in your domain against a dictionary or cmudict. 3: Confirm fillers were removed per your documented rule. 4: Check that sentence count is at least 30; if not, label the result provisional. 5: Compare the full formula against the 10-sentence shortcut; a large gap is a signal of sample instability, not a bug. 6: Record the version of your script and libraries, since hyphenation dictionaries and tokenizers update.

The subtle failure worth knowing: hyphenated words and compound terms. "Evidence-based" is one word for syllable counting, six syllables, and one polysyllable. "State-of-the-art" is a compound that pyphen will hyphenate further; the number of polysyllables depends on whether you treat it as one token or five. Decide a rule, apply it consistently, and state it. Consistency matters more than the specific choice for comparability across speeches.