What Counts as a Word?
A word is any run of letters or digits: hyphens and apostrophes join (well-known, don't = one word each), while spaces and em dashes separate. Decimal numbers split on the point (3.14 counts as two), and emoji count as zero â they are symbols, not words. Chinese, Japanese, and Thai text is segmented without spaces using each language's native word boundaries (via Intl.Segmenter).