EXAMPLE SENTENCES FROM THE WEB
I just done gone miss' a spam whale, and I was kiender mad,—muss ha' bin.
If it turns out to be spam, you adjust the "spam" histogram accordingly.
You take every word that's in the spam and count how many times it appears.
So you're saying that you think the police should suck as hard as my spam filter?
To the majority, spam means no more than chopped meat in a can.
This is called a "word frequency histogram" and it tells you what the probability is that any bag of words is likely to be spam.
Now, take a ton of email that's not spam -- in the biz, they call that "ham" -- and do the same.