Inspiration

With the rapid rise of AI-generated content, it has become increasingly difficult to distinguish between human-written and machine-generated text. This creates challenges in areas like education, content authenticity, and trust. We were inspired to build a simple, accessible tool that helps users quickly analyze text and get an estimate of whether it is AI-generated or human-written, without relying on expensive or restricted APIs.

What it does

TruthLens AI is a browser extension that allows users to scan selected text on any webpage or paste text manually to analyze its likelihood of being AI-generated. It provides an instant AI probability score based on linguistic patterns such as sentence structure, tone, repetition, and complexity. The tool is lightweight, fast, and works in real time without requiring external paid services.

How we built it

We developed the extension using standard web technologies including HTML, CSS, and JavaScript. The core logic is based on a heuristic model that evaluates multiple textual features such as sentence length, use of formal connectors, repetition patterns, and absence of personal tone. Chrome Extension APIs were used to enable interaction with web pages and extract selected text dynamically. The goal was to keep the system efficient, responsive, and fully client-side.

Challenges we ran into

One of the main challenges was handling text selection across different platforms, especially environments like Google Docs, which use canvas-based rendering instead of standard HTML. Additionally, achieving reliable detection without using advanced machine learning APIs required careful design of heuristic rules. Balancing simplicity, performance, and reasonable accuracy within limited time was also a key challenge.

Accomplishments that we're proud of

We successfully built a fully functional browser extension that performs real-time text analysis without relying on external APIs. The tool works across most websites, provides instant feedback, and includes a fallback option for pasted text. Delivering a stable, user-friendly solution under time constraints was a major achievement.

What we learned

Through this project, we gained a deeper understanding of browser extension development, DOM manipulation, and the limitations of heuristic-based AI detection. We also learned about the challenges of working with different web platforms and the importance of designing systems that are both practical and reliable.

What's next for TruthLens AI

In the future, we plan to enhance accuracy by integrating advanced AI models and APIs, improve user interface with detailed visual insights, and expand functionality to include sentence-level analysis and reporting. Our long-term vision is to make TruthLens AI a comprehensive tool for content verification and digital trust.

Built With

Share this project:

Updates