root@coding-prodigies:~#
← AI 📬

Spam or Ham Email Classifier

Paste an email, get an instant spam score -- powered by a hand-tuned keyword dictionary, not machine learning.

🟡 MediumDifficulty
2-3 hoursTime
Python, JavaScript, TypeScriptLanguages

What you're building

You're building a spam filter the old-school way: a dictionary of suspicious words and phrases, each with a 'suspicion weight', that gets summed up into a spam score. It's the same core idea real early-2000s spam filters used before neural networks took over -- and it's shockingly effective on obvious spam like 'FREE MONEY, CLICK NOW!!!'. You'll see exactly which words tipped the scale, so the logic is fully transparent.

What you'll unlock 🔓

Weighted scoringString matchingConditional UI

You'll need

🗺️ Build roadmap

01 Build the paste-an-email UI 02 Create a weighted keyword dictionary 03 Score the pasted text against the dictionary 04 Add bonus signals like ALL CAPS and excess exclamation points 05 Show a spam meter with the final verdict 06 List which specific signals triggered 07 Add example emails to test with one click
🔒

Log in to start building

Your first project is free -- create an account to unlock it.

Log in Sign up free