What Is Tokenization?

Ask a chatbot how many r’s are in strawberry and it might say two, because it never actually sees the letters. Here’s how text gets chopped into tokens, and why that trips models up on spelling, math, and code: