Try it (no sign-in): https://leaseproof.43-160-214-187.sslip.io (click Sample London lease for an instant stored result, or paste your own lease for a live check).
Inspiration
International students sign leases in their first week in a new country, in a second language, with no idea which clauses are legal. Many English leases still carry clauses the law no longer allows: deposits above five weeks' rent and renewal fees (banned by the Tenant Fees Act 2019), and since the Renters' Rights Act took effect on 1 May 2026, fixed terms you cannot leave and blanket pet bans. In New York City, deposits over one month, late fees over $50 and broker fees paid by tenants are capped too. The free help exists (Shelter, NYC 311), but only if you know what to ask.
What it does
Paste a lease, attach a PDF or drop one on the page. About 30 seconds later the lease comes back with each clause that breaks one of the 28 rules highlighted in place, colour-coded by severity. Beside it: the verdict, the money at stake (£780 in the sample lease) and one card per finding with the quoted clause, a plain-English explanation and a link to the statute. Click a highlight to open its card; click "Show in lease" to jump back. One click copies an email to the landlord listing each clause and the fix. English and Chinese, laptop and phone.
How we built it
- Redaction in the browser. Names (including labelled and non-English names), emails, phone numbers, addresses, postcodes and account numbers are replaced before the text is sent, and the checking screen shows what was removed.
- Google Gemini (free tier, AI Studio API, JSON mode with a response schema) reads the redacted lease against 28 rules written from the statutes for England (Tenant Fees Act 2019, Renters' Rights Act 2025, Housing Act 2004) and NYC (HSTPA 2019 amendments to GOL §7-108 and RPL §238-a, FARE Act). Flash models first, Flash-Lite when a model's daily quota runs out.
- Word-for-word quote verification. Every quote the model returns is matched against the lease text; a finding whose quote is not in the file is discarded, so every finding points to a real line of the lease.
- Deposit caps in code, not in the model. Deposit and holding-deposit caps are calculated from the parsed rent, and the finding shows the rent and cap it used.
- Scope checks. A lease that names neither England nor New York City gets an out-of-scope notice instead of English findings; a blocked model answer is shown as an incomplete check, never as a clean lease.
- TypeScript front end (Vite, pdf.js) and Node server in Docker behind nginx, with a self-checking deploy that rolls back on failure. 17 unit tests.
Tested on 60 synthetic leases
60 synthetic leases (30 England, 30 NYC) assembled from 155 clause wordings written by a different AI model and checked against the statutes, run through the exact production pipeline:
- 289 of 301 unlawful clauses found, each on the right line with the right rule
- 0 of 1,079 lawful clauses flagged
- 0 quotes that were not in the lease
- median model time 25 s per lease (Gemini Flash)
Method and raw results: https://github.com/yy5652-hash/leaseproof/blob/main/eval/README.md
Challenges we ran into
Keeping the model honest. A lease checker that invents a clause is worse than none, so the model never gets the last word: quotes are verified against the file and money caps are computed in code. Running on a free model tier meant handling per-model daily quotas, so the server rotates through Gemini Flash models and skips any that are exhausted until their reset time.
Accomplishments that we're proud of
Zero false alarms across 1,079 lawful clauses, zero invented quotes, and a result page a first-year student can read in under a minute.
What we learned
The most useful thing an LLM can do here is find and explain; checking, counting and computing are jobs for code. Splitting the work that way is what makes the output trustworthy enough to show a tenant.
What's next
More jurisdictions (Scotland, Wales, Toronto, Sydney), scanned-PDF support with on-device OCR, and a partnership with a students' union housing office.
Responsible use
Personal details are removed before the model sees the text; every finding points to a quoted line and a statute; the page explains the rules it checks, is clear that it is not legal advice, and points to free help (Shelter in England, 311 in New York).
AI tools used to build this
Built with help from Claude Code (Anthropic) for design, coding, testing and the demo film, and OpenAI Codex (GPT) for writing the evaluation clause bank. The product itself uses Google Gemini. Art: Hokusai, Under the Wave off Kanagawa (The Met, public domain). Film music: original score; sound effects from Mixkit.
Built With
- docker
- gemini
- nginx
- node.js
- pdf.js
- remotion
- typescript
- vite