A purely Angular web application that detects the probability of an uploaded file being AI-generated using various heuristics.
- 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.
- Angular 21
- PrimeNG 21
- PrimeFlex
- TypeScript
- Install dependencies:
npm install
- Run the development server:
npm start
- Open
http://localhost:4200in your browser.
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.

