Lesson 3 of 1234
Words Are Secretly Numbers
Computers only understand numbers. So how do they read your messages? They turn every word into a secret number code. So when you type a message to an AI, something sneaky happens.
Lesson map
What this lesson covers
Learning path
The main moves in order
- 1Computers Only Speak Math
- 2tokens
- 3representation
- 4encoding
Concept cluster
Terms to connect while reading
Section 1
Computers Only Speak Math
Here is a fun secret. A computer cannot actually read the word cat. To a computer, letters are just squiggles on a screen. It only really understands numbers.
So when you type a message to an AI, something sneaky happens. Every word gets turned into a number first. Then the AI thinks about the numbers. Then it picks new numbers and turns those back into words for you.
Tiny word parts called tokens
It is even a little wilder than that. The computer does not always use one number per word. Sometimes it chops words into small pieces called tokens. The word playing might be split into play and ing, each with its own number.
- cat might be one token
- unhappiness might be three tokens: un, happy, ness
- short common words usually get their own token
- strange or long words get chopped up
Try it in your head
Imagine the sentence I love pizza. A computer might turn it into the numbers 15, 203, 4902. That tiny number sentence is what the AI actually thinks about. Wild, right?
“In the computer's world, Shakespeare is just a very long list of numbers.”
Key terms in this lesson
The big idea: every word you type becomes a number. AI thinks in numbers, then translates back to words so we can read its answer.
End-of-lesson quiz
Check what stuck
15 questions · Score saves to your progress.
Tutor
Curious about “Words Are Secretly Numbers”?
Ask anything about this lesson. I’ll answer using just what you’re reading — short, friendly, grounded.
Progress saved locally in this browser. Sign in to sync across devices.
Related lessons
Keep going
Explorers · 15 min
A Brain Made of Many Tiny Layers
Inside an AI is something called a neural network. It is like a sandwich with many layers, and each layer passes an idea to the next.
Explorers · 40 min
How AI Chops Up Words Into Tiny Pieces
AI breaks words into little chunks called tokens.
Explorers · 15 min
What Is AI, Really?
Meet AI like you'd meet a new friend at school: not magic, not a robot from the movies, but a very fast pattern-finder.
