Skip to content
Book a Call → mycocoon.life
🧠Side quest · Caterpillar

Tiny Brain

Big AIs like ChatGPT have one job: guess the next word. Build a tiny one yourself and watch it count.

⭐ Side quest🏅 Brain Builder🧠 How AI writes
⭐ Side quest
💡
You'll learn: a language model predicts the next word by counting which words came next before. It does not know what words mean.
🪙 0 coins, this runs on your computer🧩 Side quest

1 · Feed me

Type or paste sentences. The brain eats every word and remembers which word came after which.

0words eaten
0 different words · 0 sentences
It started with 3 sentences about Coco:

    2 · Next word?

    Type a word (or two). The brain shows what usually came next, and how often.

    …

    3 · Let it talk

    It writes 12 words, one at a time, always picking from its counts. The slider says how bold it is.

    😴 boring🤪 wild0.5
    Tap "Let it talk" and watch it pick.
    remembered 2 words back 1 word back just a common word

    👉 It just picked from the counts. Every word. That is the whole trick.

    4 · Experiment: 3 sentences vs 30

    Does more food make a smarter brain? Note what it says now, then add 30 sentences about a school day and let it talk again.

    Before
    sentences3
    words0
    different words0
    choices after "the"0
    After
    sentences–
    words–
    different words–
    choices after "the"–

    The count table for "…" …

    next wordtimes seenchance
    type a word above

    chance = times seen ÷ total. That is the whole "prediction". The tiny brain stores 0 word pairs and 0 word triples right now.

    ⭐ You will discover…

    💡It predicts the next word by counting.
    🏅The Brain Builder badge
    🧠How AI writes
    🐱 Try this in Scratch →
    Ready for the next challenge?Prompt Quest →
    Copied ✓