Sentence Counter
Count sentences in your text accurately. Essential for readability analysis, writing improvement, and meeting sentence requirements.
Sentence Detection Rules
| Ending | Counts As | Period (.)End of sentence Question mark (?)End of sentence Exclamation (!)End of sentence Abbreviations (Dr., Mr.)Not sentence end | Ellipsis (...) | Usually sentence end |
Sentence Counter Implementation
``javascript
function countSentences(text) {
// Handle common abbreviations
const cleaned = text
.replace(/Mr\./g, 'Mr')
.replace(/Mrs\./g, 'Mrs')
.replace(/Dr\./g, 'Dr')
.replace(/etc\./g, 'etc');
const sentences = cleaned.split(/[.!?]+/)
.filter(s => s.trim().length > 0);
return sentences.length;
}
``
Readability and Sentence Length
Average sentence length affects readability. Academic writing averages 15-20 words per sentence. Web content typically uses 10-15 words. Very long sentences (30+ words) reduce comprehension.