Paste any email. Get a Spam Score + the exact reasons why β in seconds.
- β¨ What is Spam Email Classifier?
- π― What v20 Does
- π How to Use
- π§ͺ Try the Examples
- π How the Score Works
- π οΈ Tech Stack
- π Project Structure
- π Privacy & Honest Limits
- π€ Contributing
- π Credits
| π‘οΈ | π | π‘ | π |
|---|---|---|---|
| Spam / Not Spam | Score 0β100 | Reasons Why | 100% Private |
Spam Email Classifier v20 is an advanced spam detector β built as v20 from the start, never a basic v1.
Paste any email and it tells you, honestly:
π§ "Congratulations! You have won $1,000,000! Click here now to claim!"
β π‘οΈ SPAM β Score 92/100
β Reasons: "won $1,000,000" (prize lure) β’ "Click here now" (urgency)
β’ unknown sender β’ ALL CAPS + exclamation marks
No API key. No server. Works offline. Your emails never leave your phone. π
| Feature | What it does |
|---|---|
| π§ Paste any email | Subject + body β or tap a sample: Spam / Not Spam |
| π Spam Score 0β100 | Big, clear score bar β green (safe) β amber (suspicious) β red (spam) |
| π‘ Reasons, not just a number | Every point explained β which words, which tricks, which signals |
| π Spam signals detected | Prize lures, urgency ("act now", "limited time"), free money, suspicious links, unknown sender, ALL CAPS, exclamation spam, misspellings, fake "account suspended" warnings |
| β Not-Spam signals too | Real sender, normal language, no links, expected content β lowers the score |
| π Copy result | One tap β copy the verdict + score + reasons |
| π History | Your past checks, saved only on your phone |
| π± PWA | Installable app β works offline, feels like a real app |
| π Python version | The same v20 logic, in Python β for the terminal |
| Step | What to do |
|---|---|
| 1 | π Open the live demo |
| 2 | π§ Paste an email β subject + body, or tap a sample |
| 3 | β¨ Read the verdict β SPAM / NOT SPAM + score bar |
| 4 | π‘ Read the reasons β exactly why it scored that way |
| 5 | π Tap Copy result β share it, or save it |
# Open index.html in any browser, or:
python3 -m http.server 8000
# then open http://localhost:8000| Example | Expected result |
|---|---|
| π§ "Congratulations! You have won $1,000,000! Click here now to claim your prize before it expires!" | π‘οΈ SPAM β 90+ |
| π§ "Your account will be suspended in 24 hours. Verify now or lose access!" | π‘οΈ SPAM β 85+ |
| π§ "Hi Aryan, your BCA exam timetable is attached. Please check and confirm. β PITM Office" | β NOT SPAM β under 20 |
| π§ "Team meeting tomorrow at 10 AM in Room 204. Agenda attached." | β NOT SPAM β under 10 |
| Score | Verdict | Colour |
|---|---|---|
| 0β30 | β NOT SPAM | π’ Green |
| 31β60 | π‘ Amber | |
| 61β100 | π‘οΈ SPAM | π΄ Red |
Every point is earned by a real signal β and shown to you:
| Signal | Example | Points |
|---|---|---|
| π° Prize / free money lure | "won $1,000,000", "free gift" | +25 |
| β° Urgency / threat | "act now", "account suspended", "24 hours" | +20 |
| π Suspicious link / short link | bit.ly, "click here to claim" | +15 |
| π£ ALL CAPS / exclamation spam | "WIN NOW!!!", "FREE!!!" | +10 |
| π€ Unknown / mismatched sender | Free email pretending to be a bank | +10 |
| βοΈ Misspellings / bad grammar | "verifi your acount" | +5 |
The score is a rule-based estimate, not a guarantee. A real spam filter (Gmail, Outlook) uses far more data. This app teaches you how spam works β always check the real sender before clicking anything.
| Layer | Technology |
|---|---|
| π Web | HTML5, CSS3, JavaScript |
| π± PWA | Manifest (manifest.json) + Service Worker (sw.js) |
| π Python | Same v20 scoring logic, in Python |
| π Privacy | 100% local β no API, no server, no upload |
| π Hosting | GitHub Pages |
π‘οΈ spam-email-classifier/
β
βββ π index.html # Main site β paste email, see score + reasons
βββ π¨ style.css # All styling β score bar, verdict cards
βββ βοΈ app.js # All logic β v20 scoring + reasons engine
βββ π spam_classifier.py # Python version β same v20 logic
βββ π± manifest.json # PWA manifest
βββ βοΈ sw.js # Service worker (offline + install)
βββ π£ POSTING_KIT.md # Posting kit for the 100+ AI Projects series
βββ π README.md # You are here β¨
β οΈ Repo fix: if you still see atranslator.pyfile in this repo, delete it β it belongs to Project #04 (Translator), not to this project. This repo must contain only the spam classifier files above.
- π No API key, no account, no server β everything runs on your device
- π΅ Works offline β scoring needs no internet
- π₯οΈ Your emails never leave your phone β nothing is uploaded anywhere
Honest limit: this is a rule-based classifier β it scores the words and patterns in the email you paste. It is not Gmail's spam filter and it cannot see the real sender's domain, SPF/DKIM, or link destinations the way a real mail server can. Use it to learn and check first β never click a link in a suspicious email, even if this app says "Not Spam".
Found a spam trick this classifier misses? A better scoring rule?
Open an issue with the example email (no personal details) β real improvements only, no fake features. π‘οΈ
π§ Email: [email protected]
π‘οΈ Check first. Click later. β¨
β If this saved you from a scam email, star this repo! β