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.
👉 tasfinmahmud.github.io/ai-sentiment-analyzer
- 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
| Technology | Usage |
|---|---|
| JavaScript (ES6+) | NLP algorithms, text processing |
| Chart.js | Sentiment visualization, gauges |
| CSS3 | Dark theme, responsive design |
| HTML5 | Semantic structure |
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
# Clone the repository
git clone https://github.com/TasfinMahmud/ai-sentiment-analyzer.git
# Open in browser
open index.htmlai-sentiment-analyzer/
├── index.html # Main interface
├── style.css # Dark theme styling
├── script.js # NLP engine & chart logic
└── README.md # Documentation
MIT — Tasfin Mahmud