[05]
LEX AI — WORD ADD-IN FOR LAWYERS
█ TIER A · YEAR 2026 · STATUS: WIP · LANGUAGES: TYPESCRIPT
Hard template automation + AI placeholders (Claude) in one document
[FIG. 1] MISSION
A commercial Microsoft Word task-pane add-in for a law firm, fusing two paradigms in one document: hard template placeholders (string/date/amount — ClauseBase-style, no review needed) and AI placeholders whose content Claude streams from an instruction. The thesis: 90% of the document is a deterministic template while AI fills ~10% of „unknown unknowns”, so the lawyer verifies 8–10 clauses instead of 20 pages — aligned with bar-association guidance where the lawyer is always responsible. Office.js + React + Fluent UI + Vite; a placeholder scanner over the doc and a context-aware prompt builder. A real client project with staged pricing (MVP 100–180k PLN net).
[FIG. 2] ARCHITECTURE
hover a block to see its description
[FIG. 2A] THE 90/10 THESIS
→ pure AI: the lawyer reads everything from scratch
[FIG. 3] CHALLENGES
[+][CH-01]
Distinguishing two paradigms in one document — types and a scanner separating hard placeholders from AI ones so only ~10% needs review.
[+][CH-02]
Office.js integration — detecting placeholders in the Word document and inserting content in place, inside the closed Office environment.
[+][CH-03]
Claude streaming in the task pane with a prompt builder grounded in the document context.
[FIG. 4] AI LAYER
Hard template automation + AI placeholders (Claude) in one document
[FIG. 4A] PRESALE — STAGED PRICING
REAL CLIENT · LAW FIRM · COMPETITIVE ANALYSIS: CLAUSEBASE / SPELLBOOK / LIBRA
[FIG. 5] GALLERY
SCREENSHOTS INCOMING — see SHOTS-WANTED