Skip to content

TasfinMahmud/ai-sentiment-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI Sentiment Analyzer

An NLP-powered sentiment analysis tool with real-time emotion detection, keyword extraction, confidence scoring, and visual analytics — all running client-side in the browser.

JavaScript NLP Chart.js

🌐 Live Demo

👉 tasfinmahmud.github.io/ai-sentiment-analyzer


✨ Features

  • Sentiment Detection — Classifies text as Positive, Negative, or Neutral with confidence scores
  • Emotion Analysis — Detects emotions like Joy, Anger, Sadness, Fear, and Surprise
  • Keyword Extraction — Automatically identifies key terms and phrases
  • Visual Dashboard — Interactive gauges, charts, and sentiment distribution graphs
  • Batch Analysis — Analyze multiple texts and compare results
  • Real-Time Processing — Instant analysis with no server required
  • Dark Theme UI — Sleek, modern interface with gradient accents

🛠️ Tech Stack

Technology Usage
JavaScript (ES6+) NLP algorithms, text processing
Chart.js Sentiment visualization, gauges
CSS3 Dark theme, responsive design
HTML5 Semantic structure

🧪 How It Works

The analyzer uses a combination of:

  • Lexicon-based scoring with a curated sentiment dictionary
  • N-gram analysis for context-aware sentiment detection
  • TF-IDF inspired keyword extraction
  • Emotion mapping with weighted emotional indicators

🚀 Getting Started

# Clone the repository
git clone https://github.com/TasfinMahmud/ai-sentiment-analyzer.git

# Open in browser
open index.html

📁 Project Structure

ai-sentiment-analyzer/
├── index.html      # Main interface
├── style.css       # Dark theme styling
├── script.js       # NLP engine & chart logic
└── README.md       # Documentation

License

MIT — Tasfin Mahmud

About

NLP-powered sentiment analysis tool with emotion detection, keyword extraction, and visual gauges. Client-side processing.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors