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.
- Copy or download the computed result
- Adjust input text
- See the processing method and limits
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