Skip to content

codiebyheaart/ai-text-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– AI Text Analyzer Suite

License: MIT GitHub Pages Made with Love

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!

AI Text Analyzer

โœจ Features

  • ๐Ÿ“Š 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

๐Ÿš€ Live Demo

Try it now!

๐Ÿ–ผ๏ธ Screenshots

Main Interface

Main Interface

Analysis Results

Analysis Results

๐Ÿ› ๏ธ Technologies Used

  • 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!

๐Ÿ“ฆ Installation & Usage

Option 1: Use Online (Recommended)

Simply visit the live demo and start analyzing!

Option 2: Run Locally

  1. Clone the repository

    git clone https://github.com/codiebyheaart/ai-text-analyzer.git
    cd ai-text-analyzer
  2. 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
  3. Clear: Use the "Clear" button to start fresh

๐ŸŽฏ Use Cases

  • ๐Ÿ“ง 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

๐Ÿง  AI Algorithms Explained

Sentiment Analysis

Uses a lexicon-based approach with a curated dictionary of positive and negative words, calculating weighted sentiment scores.

Keyword Extraction

Implements TF (Term Frequency) analysis with stop-word filtering to identify the most significant terms.

Text Summarization

Employs extractive summarization, selecting key sentences based on position and relevance.

Readability Scoring

Based on the Flesch Reading Ease formula, analyzing sentence length and word complexity.

Language Detection

Pattern matching against common words in multiple languages with confidence scoring.

๐ŸŽจ Customization

Changing Colors

Edit the CSS variables in style.css:

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-bg: #0f0f23;
    --card-bg: #1a1a2e;
}

Adding More Languages

Extend the patterns object in script.js:

patterns.portuguese = { 
    words: ['o', 'de', 'e', 'a', 'que'], 
    flag: '๐Ÿ‡ต๐Ÿ‡น', 
    name: 'Portuguese' 
};

๐Ÿ“ˆ Performance

  • โšก Load Time: < 1 second
  • ๐Ÿ”„ Analysis Speed: Instant (< 100ms for most texts)
  • ๐Ÿ“ฆ Bundle Size: < 50KB total
  • ๐Ÿ“ฑ Mobile Optimized: Fully responsive

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Ideas for Contributions

  • Add more languages to detection
  • Implement additional NLP algorithms
  • Improve UI/UX
  • Add export functionality
  • Create browser extension

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘จโ€๐Ÿ’ป Author

codiebyheaart

๐Ÿ™ Acknowledgments

  • Inspired by modern NLP tools and text analysis platforms
  • UI design influenced by contemporary web design trends
  • Thanks to the open-source community

๐Ÿ“Š Project Stats

GitHub stars GitHub forks GitHub watchers

๐Ÿ”ฎ Future Enhancements

  • 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!

About

AI-powered text analysis tool with sentiment analysis, keyword extraction, and summarization

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published