Skip to content

itsomg134/Ai-vs-Human-answer-verification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ai-vs-Human-answer-verification

πŸ€– AI vs Human Text Detector

License Version HTML5 CSS3 JavaScript

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.

AI Detector Banner

🌟 Features

Core Functionality

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

Detection Capabilities

  • Formal language patterns detection
  • Sentence structure analysis
  • Common AI phrase identification
  • Punctuation pattern analysis
  • Word length and complexity metrics
  • Writing style consistency checking

πŸ–ΌοΈ Screenshots

Main Interface

Main Interface Clean and intuitive text input interface with gradient background

AI Detection Result

AI Detection Detailed analysis showing AI-generated content with confidence score

Human Writing Result

Human Detection Analysis results for human-written content with breakdown charts

Analysis Breakdown

Analysis Charts Comprehensive metrics including word count, sentence structure, and style indicators

πŸš€ Demo

Live Demo | Video Tutorial

πŸ“‹ How It Works

The detector analyzes text using multiple algorithms:

  1. Pattern Recognition - Identifies common AI writing patterns
  2. Linguistic Analysis - Examines word choice and sentence structure
  3. Style Consistency - Checks for uniformity typical of AI text
  4. Statistical Analysis - Evaluates word length, sentence complexity
  5. Phrase Detection - Looks for frequently used AI expressions

πŸ› οΈ Installation

Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/ai-text-detector.git
  1. Navigate to the project directory:
cd ai-text-detector
  1. Open index.html in your browser:
# On Mac
open index.html

# On Linux
xdg-open index.html

# On Windows
start index.html

That's it! No dependencies or build process required.

πŸ’» Usage

Basic Usage

  1. Enter Text: Paste or type the text you want to analyze in the text area
  2. Click Analyze: Press the "πŸ” Analyze Text" button
  3. View Results: See detailed analysis with confidence scores and metrics
  4. Clear: Use the "πŸ—‘οΈ Clear" button to start a new analysis

Code Example

// The main analysis function
function analyzeText() {
    const text = document.getElementById('textInput').value.trim();
    const analysis = performAnalysis(text);
    displayResults(analysis);
}

πŸ“Š Detection Metrics

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%

🎨 Customization

Color Scheme

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%);
}

🀝 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

Development Guidelines

  • Follow existing code style and formatting
  • Add comments for complex logic
  • Test thoroughly across different browsers
  • Update documentation as needed

πŸ“ To-Do List

  • 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

πŸ› Known Issues

  • Very short texts (< 20 words) may have less accurate results
  • Multilingual text mixing may affect detection accuracy
  • Some creative writing styles might be misclassified

πŸ“„ License

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

πŸ‘¨β€πŸ’» Author

Your Name

πŸ™ Acknowledgments

  • Inspired by the need for AI content detection tools
  • Design inspiration from modern web applications
  • Community feedback and contributions

πŸ“ž Support

If you have any questions or need help:

⭐ Star History

Star History Chart

Screenshot (87) Screenshot (88)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages