No devices needed
Be the AI: an unplugged lesson where your class becomes a spam filter
With no devices at all, students build a spam filter out of a tally chart. It learns from 12 labeled messages by counting words, then they test it on 8 new ones, catch it making a mistake, and fix it with better examples. For ages 7 to 12, in one class period.
- 1SPAM
You WON a free phone! Click the link now
- 2OK
Soccer practice is moved to Thursday
| Word | SPAM | OK |
|---|---|---|
| free | ||
| now | ||
| practice | ||
| today |
Print this plan or save it as a PDF to share. Only the plan goes on the paper.
The lesson
Students become a spam filter, the kind of AI that sorts the messages trying to trick people from the ordinary ones. Each group builds the filter by hand: a chart that counts, for every word on 12 message cards labeled SPAM or OK, how many cards of each kind it was on. That chart is a real machine learning model: it learns its rules from examples instead of being told them. Then the group tests it on 8 messages it has never seen, catches it calling an ordinary message spam, works out why, and fixes it with two better examples.
- Time: one class period of about 50 minutes.
- For: ages 9 to 12 (about grades 4 to 7) in groups of three or four, and ages 7 and 8 (grades 2 and 3) as a whole class with fewer cards (see Ages 7 and 8 below). No devices, no coding, and no math beyond adding and comparing small numbers.
- You need: one printed set of the materials for each group, a model card for each student, pencils, and the board. Nothing else: no computers, tablets or internet in class.
- Learning goals: by the end, students can explain that an AI model learns its rules from labeled examples, describe how their model decides (it adds up how many spam cards and how many ordinary cards each word of a message was on, and the bigger total wins), explain why a model is tested on examples it never learned from, trace a mistake back to the examples the model learned from, and improve a model by giving it better examples.
It covers two of the five big ideas in the AI4K12 guidelines from AAAI and CSTA, Learning and Societal Impact, and the machine learning standards for grades 2 to 5 in CSTA's 2026 computer science standards (see Standards below). For students 11 and older with devices, the clickbait lesson and the language lesson are the same ideas with a real AI model trained in the browser.
Before class
Print the materials: 6 sheets, in black and white on letter or A4 paper.
- For each group: the training cards, the test cards (with the two fix-it cards at the bottom of the same sheet), the clue chart and the score sheet. Cutting the cards apart makes them easy to share out, but groups can also work from the uncut sheets.
- For each student: a model card.
- For you: the answer key, with the finished chart and the result for every test card.
- Roles: in each group, a reader reads each card aloud, a tally keeper makes the marks, a checker finds each word on the chart and checks the skip list, and a reporter shares the group's results. Swap roles between training and testing.
Keep the fix-it cards (13 and 14) aside until The fix.
Warm-up: spot the trick
About 5 minutes. Write two messages on the board and ask which one is trying to trick someone:
- The bus will be ten minutes late today.
- You are a winner! Click here to get your free prize.
Ask how they could tell, and list their clues on the board: words like winner, free, prize and click, a stranger promising something, a hurry. Messages like the second are called spam: sent to lots of people at once to trick them or sell them something. Agree on one rule before anything else: never send a password in a message, and show a grown-up any message that promises a prize.
Then: "Today your group will build a computer helper that sorts messages into SPAM and OK. It can't read the way you can. It will learn the clues by counting."
Training: the class builds the model
About 15 minutes. Each group trains its model on the 12 training cards: 6 labeled SPAM and 6 labeled OK.
- The reader reads a card aloud.
- For every word on the card, the checker finds it on the clue chart and the tally keeper makes one tally mark in the column that matches the card's label, SPAM or OK.
- Little words (a, an, and, are, at, can, for, is, on, the, to, up, will, you, your) are skipped. They are not on the chart.
- Repeat for every card. Groups can split the cards so everyone tallies some.
When the group is done, its chart has 54 tally marks on 42 words. Tell the class: "That chart is your model. It started knowing nothing, and everything it knows now came from the cards."
Questions while they work:
- Which words have the most SPAM marks? (free and now, 3 each.)
- Is any word on both sides? (Yes, today: it was on a spam card and on an ordinary one.)
- Does the chart know what free means? (No. It only knows which cards free was on.)
Testing: new messages
About 10 minutes. The 8 test cards, A to H, have no labels, and the model never trained on them. Why test on new messages? A model that only works on the cards it learned from would be like a student who memorized last week's quiz answers: right on those questions, no help on new ones.
- For each test card, find each word on the chart. A word that is not on the chart counts 0: the model has never seen it.
- Add up all the SPAM marks of the card's words, then all the OK marks.
- More SPAM marks: the model says SPAM. More OK marks: it says OK. The same: it says NOT SURE.
- Write the two totals and the model's answer on the score sheet.
For example, card A, "Click now to claim your free prize", adds up to SPAM 11, OK 0, so the model says SPAM.
When every group is done, read out the real answers from the answer key. Groups mark each card right or wrong and count: a chart tallied correctly gets 6 of 8 right. Ask which ones it got wrong.
The model's two mistakes
About 10 minutes, the heart of the lesson.
Card C: "Free cookies at lunch today!" is an ordinary message, and the model called it SPAM (SPAM 4, OK 3). Ask why. The word free has 3 SPAM marks and 0 OK marks, because every training card with free on it was spam. To the chart, free means spam. Then ask:
- Was the chart wrong about the training cards? (No. Every card with free on it really was spam.)
- What was missing? (An ordinary message with free in it.)
- Who would be annoyed by this filter? (Anyone whose real message says free: a school sending news of a free event would end up in the spam folder.)
This is how AI systems pick up unfair patterns: a model learns exactly what its examples show, including things that were only true of those examples.
Card F: "Ur g4me acc0unt is l0cked, s3nd ur pa55word" is the same trick as training card 9, but every word is misspelled, and none of them is on the chart: SPAM 0, OK 0, so it says NOT SURE. Ask why someone who sends spam would spell words like this (to slip past filters), and what would happen if the class added this card to the training cards (the chart would learn these exact spellings, and the next spam would use new ones).
The fix: better examples
About 5 minutes. Hand out fix-it cards 13 and 14, two ordinary messages with free in them. Groups train on them exactly as before; their new words go in the blank rows at the bottom of the chart. Now free has 3 SPAM marks and 2 OK marks.
Test card C again: SPAM 4, OK 5, so the model now says OK. Then check card A too: it still says SPAM (SPAM 11, OK 2). The fixed model gets 7 of 8 right.
That is how people who build AI fix a model: give it better and more varied examples, then test it again, because a fix can break something that used to work.
Model card and exit questions
About 5 minutes. Teams that build AI publish a model card with each model: what it is for, how it was tested and where it goes wrong. Each student fills in the model card from the materials: their model's score, a message it got wrong and why, a new training message that would help, a message that would fool it, and a computer helper they would teach to sort something at their school. Collect it as the exit ticket, or ask these questions aloud:
- How did your model learn?
- Why did we test it on cards it never trained on?
- Why did it call "Free cookies at lunch today!" spam?
- Did your model understand the messages? How do you know?
- If you could teach a computer to sort something at school, what would it sort, what examples would it learn from, and who might it get wrong?
Ages 7 and 8
Run it as a whole class, with fewer cards. Draw the chart on the board, or display the printed one (the words that only appear on the later cards simply get no marks).
- Read training cards 1 to 8 aloud, one at a time. Students take turns adding the tally marks.
- Test cards A to E together: for each card, count the SPAM marks and the OK marks of its words and ask which side has more.
- The chart gets 4 of 5 right and calls card C spam, for the same reason as above. Add fix-it cards 13 and 14, test card C again, and it gets all 5 right.
Leave out the misspelled card. The counting is the math of comparing groups (which has more, and how many more), and the big idea is the same: the helper only knows what its examples taught it.
How real spam filters learn
For you, not the class. The chart is a hand-sized version of a real method. In 2002 the programmer Paul Graham described a spam filter in an essay called "A Plan for Spam". He started with about 4,000 spam emails and 4,000 ordinary ones, counted how many times each word appeared in each pile, turned those counts into a chance that a message containing the word is spam, and judged each new email by combining the chances of its most telling words. He reported that it missed fewer than 5 of every 1,000 spams and caught no ordinary emails by mistake. Filters built on the idea spread into email programs over the following years.
The class does the same thing with addition instead of chances. Spam filters today learn from far more examples and look at more than the words in a message, such as who sent it and where its links go, and modern AI models store what they learn as millions of numbers rather than a chart anyone can read. But the ideas from this hour hold for all of them: a model learns only what its examples show, it is tested on examples it never saw, and its mistakes trace back to its examples.
After the hour
- Math: make a bar graph of the five words with the most SPAM marks, and write the model's score as a fraction: 6 out of 8 is 6/8, the same as 3/4.
- Fool another group: each group writes a new message, tests it on its own chart, and swaps with another group to see whether their chart is fooled too.
- Train a real AI model: students 11 and older can train a small GPT, the same kind of model as the ones behind chat assistants, in a browser in our free activity Train an AI to Spot Clickbait: it learns from 840 real headlines and is tested on 240 it never saw, the same hour as this one at full size.
- Careers: keeping spam out of inboxes is real work. Trust and safety teams decide what counts as spam, data annotators label examples like the training cards, and machine learning engineers build filters and test them on messages they never trained on. Ask students which of those jobs they would want. Teachers do some of that work too: AI labs pay them by the hour to grade the explanations a model gives learners and to write the questions it is tested on, and the teacher roles on AITraining.jobs, which the makers of Nanotech also run, list them with pay.
- More free lessons: Day of AI, from MIT, has free AI lessons for every grade, AI4K12 collects resources by grade band, and CS Unplugged has more computer science without computers.
Fitting it into your subject
- Digital citizenship and online safety: the warm-up and the spam cards are a lesson on spotting scams: a prize from a stranger, a hurry, a request for a password. Use the warm-up's rule as the takeaway: never send a password in a message, and show a grown-up any message that promises a prize.
- Math: tallying, adding and comparing totals, and the score as a fraction; the bar graph above makes it a data lesson.
- English language arts: word study. The model treats won and win as two unrelated words, and g4me as a stranger rather than game, while a reader sees at once how they are related. Students can sort the chart's words into the ones that carry a clue and the ones that do not.
- Computer science: the tally chart is an algorithm the class runs by hand, and training, testing and fixing a model map to the CSTA standards below.
Standards
AI literacy. The lesson develops three competencies of the AILit Framework from the European Commission and the OECD: describing how AI systems perform tasks in language that clears up common misconceptions (Engage 2: the model counts, it does not understand), evaluating AI systems with test cases and expected outcomes (Shape 2), and designing AI systems with attention to how data sources and selection shape what they do (Shape 3).
CSTA K-12 Computer Science Standards (2026), elementary:
- E2-ALG-ML-02: Examine how data is used to train a machine learning model.
- E3-ALG-ML-02: Investigate how a machine learning model can change when new data is added to a training set. (The fix-it cards.)
- E4-ALG-ML-02: Analyze relationships between the properties of training data and a machine learning model's output. (Why card C was called spam.)
- E5-ALG-ML-02: Train a machine learning model to make a classification or prediction. (The tally chart.)
- E4-SOC-HU-18: Distinguish between human learning and machine learning processes. (Students read the messages; the model only counts.)
- E3-DAT-DC-09: Evaluate numeric and non-numeric data for accuracy and completeness. (The training cards had no ordinary message with free in it.)
In the 2017 CSTA standards many states still use, the closest are 1A-DA-07 (identify and describe patterns in data visualizations, such as charts or graphs, to make predictions), 1B-DA-07 (use data to highlight or propose cause-and-effect relationships, predict outcomes, or communicate an idea) and 1B-NI-05 (discuss real-world cybersecurity problems and how personal information can be protected).
AI4K12. Big Idea 3, Learning ("Computers can learn from data"), and Big Idea 5, Societal Impact, which warns that "biases in the data used to train an AI system could lead to some people being less well served than others."
Common Core math:
- 1.MD.C.4: Organize, represent, and interpret data with up to three categories; ask and answer questions about the total number of data points, how many in each category, and how many more or less are in one category than in another. (Ages 7 and 8.)
- 3.NF.A.1: Understand a fraction a/b as the quantity formed by a parts of size 1/b. (The score as a fraction.)
- 3.MD.B.3: Draw a scaled picture graph and a scaled bar graph to represent a data set with several categories. (The bar graph after the hour.)
Our Hour of AI self-assessment rates the lesson against CodeAI's 2026 rubric and checklist, with the evidence for each answer.
Accommodations
- Reading: give each group a reader, or read every card aloud to the whole class. The messages are short and use everyday words, and a student who cannot read a word can still find it on the chart by matching its letters, which is all the model does too.
- Writing and fine motor: make tally marks with counters, beans or sticky dots on a chart printed large, and let students answer the model card out loud.
- Vision: print the materials larger; they scale to tabloid or A3 paper. SPAM and OK are always written as words, never shown by color alone, so the sheets work in black and white.
- Math: students can count tally marks one by one instead of adding numbers, or use a number line.
- Attention and group work: give every student a role (reader, tally keeper, checker, reporter), rotate the roles between training and testing, and set a timer for each part.
- English learners: pre-teach spam, message, clue, label and test, and pair students with a peer who shares their language. The counting works the same whatever the words mean.
For your school's IT team
Nothing to set up. In class, students use no devices, accounts or internet. The teacher opens the materials once to print them; the page loads only from gonano.tech, sets no cookies and needs no sign-in.
Help and support
Questions about the lesson or the materials, or an idea for making it better: email hello@gonano.tech.
Questions
Do students need computers or tablets?
No. Everything happens on paper: the cards, the chart, the score sheet and the model card. The only device involved is the one you print the materials from.
What ages is it for?
Ages 9 to 12 (about grades 4 to 7) in small groups, and ages 7 and 8 (grades 2 and 3) as a whole class with fewer cards. It also works as a warm-up for older students before they train a real AI model in the clickbait lesson.
Do I need to know anything about AI to teach it?
No. The lesson plan explains each step, the answer key has the finished chart and the result for every test card, and How real spam filters learn above gives the background in two paragraphs.
Is a tally chart really AI?
It is machine learning in its simplest form: a model that learns its rules from labeled examples instead of being given them by a person. Nobody tells the chart that free is a spam word; it works that out from the cards. Real spam filters were built on the same counting idea, and today's much larger AI models also learn from examples, are tested on examples they never saw, and make mistakes that trace back to their examples.
How is this different from your other lessons?
It needs no devices and is written for younger students. In the clickbait lesson and the language lesson, students 11 and older train a real small GPT in a browser; here the class is the model, so every step of learning happens where students can see it.
Can I copy the materials?
Yes. Print and copy as many as your classes need. They are free.
Are the messages real?
No. We wrote every card for this lesson, with no real links, names or numbers, and kept them short, everyday and suitable for young readers. The spam cards copy tricks real spam uses: prizes, free things, hurry, and requests for a password.
Sources
- Paul Graham (2002), A Plan for Spam
- CSTA (2026), AI in the Foundational Standards, 2026 CSTA PK-12 Computer Science Standards
- CSTA (2017), K-12 Computer Science Standards progression chart
- AI4K12, Big Idea 3: Learning
- AI4K12, Big Idea 5: Societal Impact
- AILit Framework: AI literacy domains and competencies
- Common Core State Standards for Mathematics, Grade 1, Measurement and Data
- Common Core State Standards for Mathematics, Grade 3, Number and Operations: Fractions
- Common Core State Standards for Mathematics, Grade 3, Measurement and Data
- Mitchell et al. (2019), Model Cards for Model Reporting
Facts on this page last checked .