Word Counter
Words, characters, sentences and reading time. Words = text.trim().split(/\s+/).filter(w => w.length > 0).length; Characters = text.length; Characters without spaces = text.replace(/\s/g, '').length; Sentences = text.split(/[.!?]+/).filter(s => s.trim().length > 0).length; Paragraphs = text.split(/\n+/).filter(p => p.trim().length > 0).length; Reading Time (sec) = (Words / 225) * 60; Speaking Time (sec) = (Words / 150) * 60 HOW IT WORKS: Words are counted by splitting on whitespace; sentences by terminal punctuation. Reading time assumes 225 words per minute (average adult silent reading) and speaking time 150 wpm — the pace of a typical presentation. | FAQ: Do numbers and symbols count as words? Any whitespace-separated token counts as one word — consistent with how most word processors count. Validation: Empty input results in all zeroes; large texts should be handled efficiently