Each word in a text message is a small weight on a balance: "prize" and "claim" tip it towards spam, "market" and "mama" tip it back. Naive Bayes adds up every word's evidence on top of how common spam is. Then meet a word the filter has never seen in spam, and a message so long the numbers vanish. This lesson needs JavaScript.