A powerful, client-side AI text analysis tool that performs sentiment analysis, keyword extraction, text summarization, language detection, and readability scoring - all in your browser!
- ๐ Text Statistics - Real-time character, word, sentence count & reading time estimation
- ๐ Sentiment Analysis - Advanced emotion detection with detailed positive/neutral/negative breakdown
- ๐ Keyword Extraction - Intelligent key term identification using frequency analysis
- ๐ AI Summarization - Automatic text summarization using extractive algorithms
- ๐ Language Detection - Identifies the language of your text (supports 5+ languages)
- ๐ Readability Score - Grade-level readability assessment
- ๐จ Beautiful UI - Modern, responsive design with smooth animations
- โก Lightning Fast - All processing happens client-side, no server required
- ๐ Privacy First - Your text never leaves your browser
- HTML5 - Semantic markup
- CSS3 - Modern styling with animations, gradients, and glassmorphism
- JavaScript (ES6+) - Client-side NLP algorithms
- No Dependencies - Pure vanilla JavaScript, no frameworks required!
Simply visit the live demo and start analyzing!
-
Clone the repository
git clone https://github.com/codiebyheaart/ai-text-analyzer.git cd ai-text-analyzer -
Open in browser
# Simply open index.html in your browser # Or use a local server: python -m http.server 8000 # Then visit http://localhost:8000
-
Clear: Use the "Clear" button to start fresh
- ๐ง Email Analysis - Check the tone of your emails before sending
- ๐ฑ Social Media - Optimize your posts for engagement
- ๐ Content Writing - Improve readability and SEO
- ๐ Academic Writing - Assess complexity and grade level
- ๐ผ Business Communications - Ensure professional tone
- ๐ Market Research - Analyze customer feedback and reviews
Uses a lexicon-based approach with a curated dictionary of positive and negative words, calculating weighted sentiment scores.
Implements TF (Term Frequency) analysis with stop-word filtering to identify the most significant terms.
Employs extractive summarization, selecting key sentences based on position and relevance.
Based on the Flesch Reading Ease formula, analyzing sentence length and word complexity.
Pattern matching against common words in multiple languages with confidence scoring.
Edit the CSS variables in style.css:
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--dark-bg: #0f0f23;
--card-bg: #1a1a2e;
}Extend the patterns object in script.js:
patterns.portuguese = {
words: ['o', 'de', 'e', 'a', 'que'],
flag: '๐ต๐น',
name: 'Portuguese'
};- โก Load Time: < 1 second
- ๐ Analysis Speed: Instant (< 100ms for most texts)
- ๐ฆ Bundle Size: < 50KB total
- ๐ฑ Mobile Optimized: Fully responsive
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Add more languages to detection
- Implement additional NLP algorithms
- Improve UI/UX
- Add export functionality
- Create browser extension
This project is licensed under the MIT License - see the LICENSE file for details.
codiebyheaart
- GitHub: @codiebyheaart
- Portfolio: github.com/codiebyheaart
- Inspired by modern NLP tools and text analysis platforms
- UI design influenced by contemporary web design trends
- Thanks to the open-source community
- Integration with external AI APIs (GPT, BERT)
- Multi-document analysis
- Export results to PDF/CSV
- Browser extension
- Dark/Light mode toggle
- Text comparison feature
- Plagiarism detection
- Grammar checking
Made with โค๏ธ and โ | Star โญ this repo if you found it useful!