Features

Ask a chatbot how many r’s are in "strawberry" and, for a long time, the smartest software on Earth would confidently say two. The answer is three. The reason is that the chatbot never sees the letters.

Features — 146

Why AI can’t count the letters in a word

Filed UnderAI, Everyday Tech
Read Time~3 minutes
PublishedNovember 13, 2026 at 8:43 PM
Fresh strawberries arranged on a white background, seen from above
Photo: Kaboompics / Pexels

          In 2024, a simple question became a famous test. Ask a chatbot how many r's are in the word "strawberry," and many of the best models in the world would answer, confidently, two. The answer is three: one after the "st," and two more in the double "r" near the end. A child can count them on her fingers. The machine that can write working code and pass a bar exam could not.
          It wasn't being careless. It was blind in a very specific way. A chatbot never sees the letters in a word. Before your message reaches the model, a separate piece of software called a tokenizer chops the text into chunks, and the model only ever sees those chunks.

Chunks, not letters
          A chunk is called a token. A token can be a whole word, a piece of a word, or a punctuation mark. The tokenizer learned its chunks from huge amounts of text, keeping the pieces that show up most often. Common words become single tokens; rarer words get assembled from parts. As a rough rule, one token is about three quarters of a word.
          Feed "strawberry" to one widely used tokenizer and it comes out as three chunks: "str," "aw," and "berry." Put the word in the middle of a sentence, with a space in front of it, and it can collapse into a single token — one chunk for the whole word. Either way, the model never receives the ten letters. It receives the ID numbers of the chunks, and nothing about those numbers says how many r's are inside.
          To count the r's, the model has to remember, from training, what letters each chunk contains, and then add them up across the chunks. Sometimes it manages. Often it guesses — and a confident guess is what a chatbot is built to produce.

“ It never sees the letters at all.”

Why chunks at all
          Chunks exist because reading letter by letter would be slow and expensive. A model that processed one letter at a time would need ten steps just to get through "strawberry." Chunks let it swallow whole words at a gulp, which is part of why it can answer so fast. The trade is that the inside of a chunk is invisible to it — like being asked to count the letters in a word you have only ever heard spoken, never seen written down.

The way around it
          There are two ways past the blind spot. One is to spell the word out, letter by letter, with spaces or hyphens between the letters — that forces the tokenizer to hand the model one piece per letter, and the counting becomes easy. The other is to let the model think out loud: the newer models that work through a problem step by step, writing down the spelling before answering, usually get it right. The counting still isn't built in. The model is just giving itself the letters to look at.
          So the strawberry question isn't a trick, and it isn't proof that AI is stupid. It's a window into how the machine reads: in chunks, not letters, fast but with a blind spot exactly where you'd least expect it. It never sees the letters at all.

Enjoying the magazine?

A new story goes up every night at midnight. Find your next one by section.

Browse the sections