Skip to content

About

Spam Classifier v20 πŸ›‘οΈ | Score + Reasons | Phishing? Check First | Project #05

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈβœ¨ Spam Email Classifier β€” v20 ADVANCED βœ¨πŸ›‘οΈ

Spam or Not Spam? Score + Reasons. Check First.

Spam Classifier Project 05 No API Key Works Offline License

Paste any email. Get a Spam Score + the exact reasons why β€” in seconds.

Live Demo GitHub Portfolio


πŸ“‘ Table of Contents


✨ What is Spam Email Classifier?

πŸ›‘οΈ πŸ“Š πŸ’‘ πŸ”’
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. πŸ’š


🎯 What v20 Does

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

πŸš€ How to Use

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

Run It Locally

# Open index.html in any browser, or:
python3 -m http.server 8000
# then open http://localhost:8000

πŸ§ͺ Try the Examples

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

πŸ“Š How the Score Works

Score Verdict Colour
0–30 βœ… NOT SPAM 🟒 Green
31–60 ⚠️ SUSPICIOUS 🟑 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.


πŸ› οΈ Tech Stack

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

πŸ“ Project Structure

πŸ›‘οΈ 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 a translator.py file 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.


πŸ”’ Privacy & Honest Limits

  • πŸ”‘ 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".


🀝 Contributing

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. πŸ›‘οΈ


πŸ’œ Credits

Built with πŸ’œ by

Aspiring Software Developer

Project #05 of the 100+ AI Projects Series

GitHub YouTube Portfolio

πŸ“§ Email: [email protected]


πŸ›‘οΈ Check first. Click later. ✨

⭐ If this saved you from a scam email, star this repo! ⭐

About

Spam Classifier v20 πŸ›‘οΈ | Score + Reasons | Phishing? Check First | Project #05

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages