🧠
TokenTales
How does AI guess the next word? By counting. Come see.
🔮 Open the model console →The secret behind "AI writing"
- Train. TokenTales builds a real, tiny "n-gram" model on a public-domain rhyme — right here, in your browser.
- Predict. You see a phrase and guess which word the model thinks comes next.
- Reveal. The counts appear as a bar chart — you see it is just counting, not magic.
- Watch it write. Give it a starting word and watch the model continue, one most-likely word at a time.
Meet the crew — the pieces of a language model
- Token — a single word (or piece of a word); a model reads and predicts one token at a time.
- Tally — the counter: how many times each word followed another (the model's whole "memory").
- Gram — the look-back: a bigram uses the last 1 word, a trigram the last 2 — more look-back, smoother writing.
- Nova — the guide: the model has no idea what words mean; it predicts the most common next word. Knowing that is knowing how AI really works.