A simple web application that analyzes emotions and sentiments in text using OpenAI's API.
- Basic Sentiment: Positive/Negative/Neutral classification
- Detailed Emotions: Joy, anger, fear, sadness, etc.
- Comprehensive Analysis: Full emotional breakdown with key phrases
- Visual Results: Sentiment meter and emotion breakdown charts
- Open
index.htmlin your browser - Enter your OpenAI API Key
- Paste text to analyze
- Click "Analyze Sentiment"
- OpenAI API Key (Get one here)
- Modern web browser
├── index.html # Main application
├── script.js # Main script
├── style.css # Main style
├── README.md # This file
└── test-data.md # Sample test cases
Positive Text:
I'm absolutely thrilled about this new opportunity!
Negative Text:
This service was terrible and completely disappointing.
Mixed Emotions:
Excited about vacation but worried about work deadlines.
- Pure HTML/CSS/JavaScript
- OpenAI GPT-3.5-turbo API
- No build process required
MIT License