Document intelligence
LegalEase
Which sentence produced this explanation?
System path
- Extract text
- Identify clauses
- Link quotations
My contribution. I worked on the document uploader, clause suggestions and multilingual interface.
The application connects a React checker and policy pages with a Supabase-backed sign-in flow and an Express analysis service.
Concept demo · Illustrative agreement
pdf-parse → extracted text / English OCR with Tesseract → extracted text → structured Gemini clause output
“The agreement renews every 30 days.”
Renewal repeats every 30 days.
“Give 14 days’ notice before the next renewal.”
The notice period in this sample is 14 days.
“Both parties must approve changes in writing.”
A change needs written approval from both parties.
In the application

How it works
The service extracts text from PDFs or runs English OCR on images. Gemini returns structured clause output with requested source quotations. Document-context chat receives the structured analysis.
React / Vite / Express / Supabase / pdf-parse / Tesseract / Gemini
Engineering tradeoff
The analysis prompt takes up to 8,000 extracted characters. On longer files, that leaves later clauses outside that request.