Sentence Counter

Sentence Counter lets you segment pasted prose into sentences using the browser’s English sentence segmenter. Enter your own values or load the worked example.

Method and calculation

Segment pasted prose into sentences using the browser’s English sentence segmenter.

Inputs and settings

Sentence Counter accepts Input text.

Worked example

Sentence Counter example — Input text: "Hello world\nA second line\nHello world". Computed output: { "count": 3, "sentences": [ "Hello world", "A second line", "Hello world" ] }

Output and limitations

Sentence segmentation follows the browser’s Internationalization implementation. Abbreviations, initials and decimal punctuation may be treated differently across language conventions. The returned sentence list lets you inspect the boundaries instead of relying only on a headline count.

Technical references: JavaScript Unicode normalization

Sentence Counter FAQs

Sentence Counter applies the following rule to your input: Segment pasted prose into sentences using the browser’s English sentence segmenter. The worked example on this page uses the same processor as the result button.
Sentence Counter has these boundaries: Input is treated as plain text; it is never executed. Start by checking the input text field against the units or format shown.
Sentence Counter provides this sample: { "count": 3, "sentences": [ "Hello world", "A second line", "Hello world" ] }. Use the sample button to reproduce it, then replace the inputs with your own values.