Aaditya Srivastava

Working Proof

Software engineeringChennai, India
Back to selected work

Document intelligence

LegalEase

Which sentence produced this explanation?

System path

  1. Extract text
  2. Identify clauses
  3. 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

  1. “The agreement renews every 30 days.”

    Renewal repeats every 30 days.

  2. “Give 14 days’ notice before the next renewal.”

    The notice period in this sample is 14 days.

  3. “Both parties must approve changes in writing.”

    A change needs written approval from both parties.

In the application

Public interface
legalease-six.vercel.appLegalEase public home shows its document analysis introduction and the Start Analyzing Now action.
Application screenshot · LegalEase public home.Visit the captured page

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.