Lumvik

Work / Originals / Margin

Margin

Margin reads a contract and pulls out the parties, dates, money, obligations and risks, then lets you ask questions. Every finding links to the clause it came from.

Category
Document intelligence
Discipline
AI product design, search
Built with
JavaScript, rules, BM25
Status
Working prototype
lumvik-solutions.vercel.app/originals/margin
Margin showing a services agreement with highlighted dates and money, and a list of risks

The idea

The useful part of an AI document tool is the citation, not the prose.

People reviewing contracts need to find things fast and trust what they find. A summary they can't check is a liability. Margin is built the other way round: it finds, flags and points, and it never writes an answer it can't trace to a clause.

Design direction

Ink navy, paper and a highlighter.

The document sits in the middle on a sheet of paper set in Literata, a typeface designed for long reading. Each kind of finding has its own highlight colour, which you can switch off. Manrope carries the interface.

  • Ink
    #172230
  • Paper
    #fbfaf7
  • Marker
    #f4c95d
  • Link blue
    #2f5bd3

What works

Three sample contracts, or your own text.

  • Parties, start and end dates, term, notice period, payment terms, governing law and price increases extracted automatically
  • Risk flags from thirteen written rules, including auto-renewal, uncapped liability, broad indemnities, lock-ins, residuals clauses and one-way assignment
  • Obligations grouped by party, from every “shall” and “must”
  • A timeline of key dates worked out from the text, including the last day to stop an auto-renewal and each rent increase in rupees
  • Questions answered with the three best-matching passages, ranked by BM25 search with synonyms
  • Open a .txt file or paste text; it is analysed on your device and never uploaded
  • Export a Markdown summary, or add the deadlines to a calendar as an .ics file

Engineering

Deterministic by design.

The engine is a few hundred lines of JavaScript: a clause parser, regular expressions for dates and amounts (including Indian digit grouping), a rule set for risks, date arithmetic for the timeline and a BM25 index for questions. Analysing a contract takes a few milliseconds.

In a client product we would add a language model behind the same interface, for clauses the rules can't read, and keep the citation requirement: no source, no answer.

Honest limits

Rules miss things. Margin says so.

There is no AI model in this demo, and the page says that at the top. Rules work well on clearly numbered contracts and less well on unusual drafting. PDF and Word files need a text-extraction step that the demo leaves out. The sample contracts and every company in them are fictional, and nothing here is legal advice.

In use

More screens

Next project

Fenn →

Want something like this, for real?

Start a project

Tell us what you have in mind. You'll get a straight answer within one working day, and a written scope and fixed quote if it's a fit.

WhatsApp