b2KIT

Sentence Counter

Count sentences, average sentence length, and identify longest and shortest sentences in your text.

Tested tool guide Text and writing tools Checked July 30, 2026

What Sentence Counter does, with a checked example

This counter splits text after a period, exclamation mark, or question mark followed by whitespace. It reports sentence count, average words, and the longest and shortest sentence by word total. The rule is transparent and fast, but abbreviations and punctuation conventions can produce different results from a language-aware editor.

Worked example

A concrete input and expected output from the current implementation.

Input

Be clear. Test the result carefully! Ready?

Expected output

3 sentences, 7 total words, 2.3 average words per sentence

The middle sentence is longest with four words. The final question is shortest with one word.

How the result is produced

1

Boundary detection uses visible punctuation

A sentence break is recognized when terminal punctuation is followed by whitespace. A line with no terminal punctuation is still counted as one sentence when it contains text.

2

Length is measured in whitespace-separated words

The average and distribution compare word totals, while the interface also records character length for each sentence.

Good uses

  • Identify unusually long sentences in a draft.
  • Compare pacing between two short passages.
  • Check whether a list of instructions has clear endpoints.

Limits and checks

  • Mr., e.g., and decimal numbers can confuse a punctuation-only rule.
  • Languages use different sentence-boundary conventions.
  • Short sentences are not automatically clearer or better.

Common questions

Why is an abbreviation counted as a sentence?

The tool does not maintain a dictionary of abbreviations. It applies one visible rule so the result is predictable.

Does a paragraph break end a sentence?

Not by itself in this implementation. Add terminal punctuation when a line should be counted as a completed sentence.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools