No updates detected yet. GitHub releases will appear here.
AI-Powered Legal Contract Analysis & Tracked-Change Redlining
翻訳待ち
Loading the full README. The saved excerpt is shown below.
AI-Powered Legal Contract Analysis & Tracked-Change Redlining Engine Built for UAE legal practices and international commercial contracts. -brightgreen.svg) • 🌐 Live Web Application: https://juriqa-assignment-kappa.vercel.app • ⚡ Backend API Service: https://juriqa-assignment.onrender.com (Health: https://juriqa-assignment.onrender.com/health/ready) • 🎥 Video Walkthrough (YouTube): Watch Demo Video • 📁 Sample Test Contracts: Pre-bundled in TEST_FILES/ (Facility agreement 162p, MSA v1 & v2, NDAs, scanned samples) ⚖️ The Core Principle: "Never Trust the AI"Read the full README ↗
AI-Powered Legal Contract Analysis & Tracked-Change Redlining Engine
Built for UAE legal practices and international commercial contracts.
TEST_FILES/ (Facility agreement 162p, MSA v1 & v2, NDAs, scanned samples)In legal contract analysis, hallucinated quotes or fabricated clause citations can compromise legal counsel. This application is engineered around one foundational rule:
The AI is strictly an unprivileged drafter.
It is never trusted for coordinates, offsets, page numbers, or quote authenticity. Every supporting citation must be independently discovered, bounded, and verified by our deterministic TypeScript verification engine inside the source document.
- Matched quotes are verified with green badges and interactive viewport jump links.
- Unmatched or altered quotes are flagged as
UNVERIFIEDand barred from citation overlays.- If an answer does not exist in the contract, the engine reports its absence rather than inventing terms.
Ask complex questions against 100+ page contracts. Clicking any verified quote jumps directly to the rendered page and overlays viewport bounding-box highlights.
Compare two contract versions with Needleman-Wunsch sequence alignment, plain-language legal change summaries, and automatic risk severity scoring (HIGH / MEDIUM / LOW).
Query across multiple agreements simultaneously (e.g. comparing master agreements against NDAs) with document-isolated quote verification and unified legal synthesis.
| Section | Feature | Implementation Details | Status |
|---|---|---|---|
| Part A.1 | Upload & Processing | PDF (pdfjs-dist) & DOCX (mammoth) extraction, magic-byte sniffing (pdf-parse/mammoth), scanned PDF detection (amber alert banners for missing OCR text), encrypted file rejection. | 100% Complete |
| Part A.2 | Streaming Chat | Server-Sent Events (SSE) streaming answers word-by-word with abort controller support; persistent chat sessions per document in PostgreSQL. | 100% Complete |
| Part A.3 | Quote Verification Engine | Independent deterministic substring & normalized token matcher; supports curly/straight quotes, soft hyphens, whitespace compression, and case-insensitivity. | 100% Complete |
| Part A.4 | Large Contracts (150+ Pages) | Tested on 162-page Facility Agreement. Automatic Thorough Scan Mode for negative/absence queries with chunked map-reduce and honest coverage badges (COMPLETE vs PARTIAL). | 100% Complete |
| Part B.5 | Citation Highlighting | Viewport coordinate mapping with PDF text layer bounding boxes; DOCX reading mode DOM text ranges; multi-line & across-page highlight support. | 100% Complete |
| Part B.6 | Multi-Document Chat | Multi-contract selector with D1/D2 aliases, comparative synthesis, and strictly document-isolated quote verification. | 100% Complete |
| Part B.7 |
This is the beginning of the README. Read the rest at the original. Read the full README ↗
| Clause-level sequence alignment, semantic diffs, renumbering shift notes, and risk severity tags (e.g., changes to liability caps, governing law, or payment days). |
| 100% Complete |
| Part C.1 | Tracked-Change Redlining (Chosen) | Native OpenXML .docx surgery injecting <w:del> and <w:ins> nodes into word/document.xml. Preserves styles and tables; self-checked with simulateAccept() / simulateReject(). | 100% Complete |