Skip to content

pmroz1/IsThisCodeHuman

Repository files navigation

Is This Code Human?

A purely Angular web application that detects the probability of an uploaded file being AI-generated using various heuristics.

Features

  • AI Probability Detection: Calculates the likelihood of a file being AI-generated.
  • Heuristic Analysis:
    • Typos: Checks for common human typos (AI rarely makes them).
    • Comments: Analyzes comment styles for typical AI patterns.
    • Code Quality: Detects "too perfect" code consistency.
    • AI Gimmicks: Searches for common AI-specific phrases and patterns.
  • PrimeNG UI: Modern and responsive interface using PrimeNG components.

Screenshots

AI Generated Code Detection (100% Probability)

AI Detection High

Human Written Code Detection (0% Probability)

AI Detection Low

Tech Stack

  • Angular 21
  • PrimeNG 21
  • PrimeFlex
  • TypeScript

Getting Started

  1. Install dependencies:
    npm install
  2. Run the development server:
    npm start
  3. Open http://localhost:4200 in your browser.

How it Works

The application uses a rule-based heuristic approach in the AiDetectorService. It scans the content of the uploaded file for specific patterns, phrases, and structural characteristics that are commonly found in AI-generated code versus human-written code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors