A powerful web-based tool to detect whether text content was generated by AI (like ChatGPT) or written by humans. Features real-time analysis with detailed metrics and beautiful visualizations.
- β¨ Instant Analysis - Real-time text detection with immediate results
- π Detailed Metrics - Comprehensive breakdown of text characteristics
- π― High Accuracy - Advanced pattern recognition algorithms
- π¨ Beautiful UI - Modern, gradient-based design with smooth animations
- π± Fully Responsive - Works seamlessly on desktop, tablet, and mobile devices
- π No Backend Required - Pure client-side processing for privacy
- Formal language patterns detection
- Sentence structure analysis
- Common AI phrase identification
- Punctuation pattern analysis
- Word length and complexity metrics
- Writing style consistency checking
Clean and intuitive text input interface with gradient background
Detailed analysis showing AI-generated content with confidence score
Analysis results for human-written content with breakdown charts
Comprehensive metrics including word count, sentence structure, and style indicators
The detector analyzes text using multiple algorithms:
- Pattern Recognition - Identifies common AI writing patterns
- Linguistic Analysis - Examines word choice and sentence structure
- Style Consistency - Checks for uniformity typical of AI text
- Statistical Analysis - Evaluates word length, sentence complexity
- Phrase Detection - Looks for frequently used AI expressions
- Clone the repository:
git clone https://github.com/yourusername/ai-text-detector.git- Navigate to the project directory:
cd ai-text-detector- Open
index.htmlin your browser:
# On Mac
open index.html
# On Linux
xdg-open index.html
# On Windows
start index.htmlThat's it! No dependencies or build process required.
- Enter Text: Paste or type the text you want to analyze in the text area
- Click Analyze: Press the "π Analyze Text" button
- View Results: See detailed analysis with confidence scores and metrics
- Clear: Use the "ποΈ Clear" button to start a new analysis
// The main analysis function
function analyzeText() {
const text = document.getElementById('textInput').value.trim();
const analysis = performAnalysis(text);
displayResults(analysis);
}| Metric | Description | Weight |
|---|---|---|
| Formal Words | Usage of transition words (furthermore, moreover, etc.) | 20% |
| Punctuation | Perfect punctuation patterns | 15% |
| Structure | Organized formatting and paragraphs | 20% |
| AI Phrases | Common expressions like "it's worth noting" | 25% |
| Consistency | Lack of typos and uniform style | 20% |
Edit the CSS variables to customize colors:
/* AI Detection Colors */
.ai-badge {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
/* Human Detection Colors */
.human-badge {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
/* Primary Gradient */
body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}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
- Follow existing code style and formatting
- Add comments for complex logic
- Test thoroughly across different browsers
- Update documentation as needed
- Add support for multiple languages
- Implement machine learning model integration
- Add browser extension version
- Create API endpoint for programmatic access
- Add export functionality (PDF/JSON reports)
- Implement batch text analysis
- Add comparison mode for multiple texts
- Create mobile app versions
- Very short texts (< 20 words) may have less accurate results
- Multilingual text mixing may affect detection accuracy
- Some creative writing styles might be misclassified
This project is licensed under the MIT License - see the LICENSE file for details.
Your Name
- GitHub: @itsomg134
- Twitter: @omgedam
- Email: omgedam123098@gmail.com
- Portfolio: ogworks.lovable.app
- LinkedIn: Om Gedam
- Inspired by the need for AI content detection tools
- Design inspiration from modern web applications
- Community feedback and contributions
If you have any questions or need help:
- Email: omgedam123098@gmail.com
- Portfolio: ogworks.lovable.app
- LinkedIn: Om Gedam