The problem I chose

Checking units is the fastest way to catch a wrong formula and one of the first habits physics teachers try to build, but students skip it because the bookkeeping is tedious. Wrong formulas then survive into homework, lab reports and exams.

How the project solves it

dimcheck is a web page (and a small command line tool). The student types an equation and says what each symbol is, either a unit like m/s^2 or a name like acceleration. It shows the SI units of every term and marks the exact term that cannot be added, a side that does not match, or a sine or exponential whose argument has units. It also states clearly what dimensional analysis cannot catch (a missing ½, a wrong sign).

Results (real, from npm run corpus)

  • 50 textbook formulas: all 50 pass, none wrongly flagged.
  • 132 deliberate unit mistakes (wrong power, missing factor, divide instead of multiply): 118 caught (89%).
  • 50 wrong-number mistakes: 0 caught — a limit of dimensional analysis, stated on the page.

How I used AI

The project itself uses no AI model: it is a deterministic parser, which is the right tool for an exact check, and it works offline with no API credits. AI-assisted coding was used to build it: an AI coding assistant helped write the parser, the tests, the formula corpus and the documentation. The README states this.

What existed before the hackathon

Nothing. The repository was created on 1 Dec 2026 and all code was written then.

What I learned

How far a pure units check goes (most unit slips) and exactly where it stops (number factors), and how to show the working so a student learns from the result instead of copying it.

What I would build next

A numeric spot check against a reference formula to catch some factor mistakes, LaTeX paste, unit conversion, and a worksheet mode for teachers.

Team

Solo — Prafull Joshi

Share this project:

Updates

Submission history