The word rule
A word is any run of characters between separators - spaces, tabs, and line breaks all count, and several in a row count as one. Apostrophes and hyphens do not split, so "don't" and "well-known" are one word each, and "e.g." stays whole despite its periods. Digits count too: "2026" is a word. Languages written without spaces, like Chinese and Japanese, register as a single long word.