Artificial Intelligence · Foundation · 3 min read
Why AI cannot count the letters in a word
Tokens: How a Model Actually Reads
A language model does not see words. It sees tokens, and that one fact explains a lot of its odd behaviour.
What it is
A token is a piece of text, often a whole common word, sometimes part of one, sometimes a few characters. Before the model does anything, your text is chopped into tokens and each becomes a number. The model then guesses the next token, over and over.
Why it matters
This explains why models struggle to count letters, why some languages cost more to process than English, why unusual names come out mangled, and why price and memory limits are counted in tokens rather than words. It also explains why a short looking prompt can be expensive, since code and tables break into far more tokens than plain writing.
What to do today
- As a rough rule for English, one token is about four characters, or roughly three quarters of a word.
- When cost matters, measure tokens rather than estimating by page count.
- If a model mishandles a specific term, try spacing or rephrasing it; the tokenisation may be the cause.
- Remember that the context window counts your prompt, the retrieved material and the answer together.
The common mistake
Assuming the model reads words and letters the way you do. It works on patterns between chunks of text.
One idea a day
Something new every day across six subjects, plus a word, an idiom and a proverb.
See today