Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

Why AI Can't Count the 'R's in 'Strawberry': The Tokenization Blindspot

DemystifAI 2 min read

Advanced AI models can write essays, solve complex math problems, and even generate poetry, but many stumble on a surprisingly simple task: counting the letters in the word "strawberry." This limitation stems from a fundamental design choice in how large language models (LLMs) process text, known as tokenization.

Unlike humans, who read letter by letter, AI models break text into larger chunks—tokens—and assign each a numeric ID. For example, the word "strawberry" might be split into tokens like "straw" and "berry," or even a single token for the entire word. Once tokenized, the model no longer "sees" the individual characters; it only recognizes the token as a whole. This makes it mathematically impossible for the model to count the 'R's inside "berry" because the token hides the internal letters.

The issue is not a lack of intelligence but a structural blindspot in tokenization. Since the model never learns to decompose tokens into characters, tasks requiring character-level counting or spelling become impossible without a workaround.

Fortunately, there is a simple fix: forcing the AI to spell out words with spaces between each letter. This converts each character into its own token, allowing the model to process and count them individually. This trick reveals that while LLMs are powerful, they still rely on human-designed shortcuts that can limit their basic reasoning.

React