# Episode 2 · How many r's in "strawberry"?

Source: https://learn.agentware.studio/ai-gacha/en/ep/ep02
Other languages: [中文](https://learn.agentware.studio/ai-gacha/zh/ep/ep02.md) · [日本語](https://learn.agentware.studio/ai-gacha/ja/ep/ep02.md)

[Graduating from AI Gacha](https://learn.agentware.studio/ai-gacha/en/) · Season 1 · How it works

## What this episode covers

- Before reading, the AI cuts text into tiles. The cuts follow what was common in training text, not letters.
- Each tile is an ID on the model’s side. It never looks at the letters inside one by one, which is how it miscounts the r’s in strawberry.
- The same sentence in Chinese, Japanese and English gives different tile counts, and the AI’s desk space is measured in tiles.
- For exact counting, maths or sorting, have it write each item out, or run code.

## This episode's game: One Cut

How it plays: Slice gesture

Swipe through a line of text to guess where the tokenizer cuts it, then reveal the real split. One round each in Chinese, Japanese and English, each ending with a "what would you do" question.

## Glossary

- **Tokenizer** (分词器 / トークナイザー): The rules that cut text into tiles. They differ by model, which is why counting letters can go wrong.

Video coming soon

- Previous episode: [Episode 1 · All a language model does is pick the next tile](https://learn.agentware.studio/ai-gacha/en/ep/ep01)
- Next episode: [Episode 3 · Confidently wrong](https://learn.agentware.studio/ai-gacha/en/ep/ep03)
