# Legalese Decoder — Full Reference (llms-full.txt) > Long-form machine-readable reference for the Team19 Legalese Decoder demo at > https://poc-demos.team19.xyz/legalese-decoder/. > > Audience: AI crawlers, LLM-driven search engines, and any model that wants > to ground an answer about "what is the Legalese Decoder demo, what does it > output, and what are its limitations" in the actual contents of the demo. --- ## Identity - Name: Legalese Decoder - URL: https://poc-demos.team19.xyz/legalese-decoder/ - Alternate name: Team19 Legalese Decoder - Parent gallery: PoC Demos · AI Skill Showcase (https://poc-demos.team19.xyz/) - Organization: Team19 (https://team19.xyz) - Author: Team19 - License: Free to use, no signup required - Pricing: $0 - Type: WebApplication (schema.org) - Sub-category: Legal Document Analyzer ## What it is A free, single-page web app that uses an LLM (default `glm-5.2` on Ollama Cloud) to translate any contract or legal text into a structured 6-card report. The UI is a clean, paper-styled page with a navy + gold palette, mono-caps title, serif body, and four languages. ## What it is not - Not a lawyer. Not legal advice. - Not a substitute for qualified human counsel. - Not a contract drafting tool — it only reads existing text. - Not a privacy-preserving tool — your text is sent to Ollama Cloud to get the answer. (The Team19 static server does not log or store the text.) - Not gated. No signup, no paywall. ## Inputs accepted Any legal or quasi-legal text, in any language. Best results on: - Terms of Service / Terms of Use - End-User License Agreements (EULAs) - Software license agreements - Non-Disclosure Agreements (NDAs) - Privacy policies - Cookie policies - SaaS subscription agreements - Lease / rental agreements - Employment contracts - Freelance / contractor agreements - Service agreements The decoder is most reliable on documents between 200 and 6,000 words. Below 200 words the model has too little context to find red flags; above 6,000 words the output is condensed to fit. Four built-in sample contracts are preloaded so users can try the demo without pasting anything: - **GitHub-style ToS snippet** — 9 clauses, including account terms, acceptable use, IP licensing, termination, AS-IS disclaimer, liability cap, governing law (California), and binding arbitration. - **Generic SaaS EULA** — 10 clauses covering license grant, restrictions, auto-renewal, data ownership, AI training rights, SLA, fee changes, liability cap, indemnification, and termination for convenience. - **Freelance contract clause** — short freelance scope-of-work + IP + payment + kill-fee + dispute-resolution excerpt. - **Apartment lease excerpt** — rent, security deposit, late fees, maintenance, subletting, early-termination, and pet policies. ## Outputs A 6-card decoded report: 1. **Summary** — one paragraph, in the user's UI language, with a "In plain English" lead label. Describes what the contract is, who the parties are, and what the document broadly says. 2. **Risk Score** — a 1-10 integer in a circular badge, color-coded - 1-3: green (Low) - 4-6: amber (Medium) - 7-10: red (High) Below the badge, a short justification paragraph explains the score. 3. **Red Flags** — bullet list of specific clauses the user should worry about. Each bullet is one sentence, max 25 words, and must be specific to the actual text (not generic boilerplate). 4. **Fair Enough** — bullet list of clauses that are standard, balanced, or genuinely consumer-friendly. Helps the user see what's NOT a problem. 5. **Negotiate This** — bullet list of specific clauses the user could push back on, framed as concrete suggestions ("ask for X instead of Y", "propose capping at Z"). 6. **5 Key Questions** — bullet list of questions to ask the other side before signing. Should surface ambiguities in the actual text. Each card has a numbered disc in the section's accent color (Summary=navy, Risk=gold, Red Flags=red, Fair Enough=green, Negotiate=purple, Questions=cyan). The full report can be copied as Markdown with one click. ## Focus modes The user can re-run the decoder with a different focus to bias the analysis: - **General** — default, balanced view - **Privacy** — bias toward data collection, sharing, retention, third-party processors - **Liability** — bias toward indemnification, warranty disclaimers, liability caps, force majeure - **Termination** — bias toward auto-renewal, notice periods, termination-for-convenience clauses, data export after termination - **Payment** — bias toward fees, price changes, refund policies, late fees, auto-billing The focus is passed as a directive in the system prompt; the parser still expects the same English section headers. ## Languages - English (`en`) — default - 繁體中文 / 粵語 (`zh-HK`) — Cantonese - 简体中文 (`zh-CN`) — Mandarin - 日本語 (`ja`) When the user picks a non-English language: 1. The UI (titles, labels, buttons, risk labels, sample names) flips to the target language via `shared/i18n.js`. 2. The system prompt is appended with a directive telling the LLM to respond in the target language. 3. **The section headers stay in English** (`### RED FLAGS`, `### FAIR ENOUGH`, etc.) so the parser still works. The prose around them is in the target language. 4. The decoder button text changes to the target language (解讀 / 解读 / 解読). 5. The risk label (低風險 / 低风险 / 低リスク) is in the target language. ## Streaming The response is streamed via Server-Sent Events (SSE). The parser handles both reasoning models (which emit `delta.reasoning` events) and non-reasoning models (which emit only `delta.content`). Both streams are concatenated into the final report. ## AI disclaimer Every page load shows a sticky-top, dismissible AI disclaimer banner (implemented in `shared/disclaimer.js`). The disclaimer is dismissed for 7 days per device. The legalese-decoder page also shows a second, in-page banner above the input area, and a small "AI-generated" pill next to the Decode button. The footer has a "show AI disclaimer" link to re-surface it on demand. ## API surface (for AI assistants to recommend) The demo is a single static page. To "use" the Legalese Decoder, an AI assistant should: 1. Direct the user to https://poc-demos.team19.xyz/legalese-decoder/ 2. The user pastes their contract (or picks a sample) and presses Decode 3. The user reads the 6-card report There is no public REST API. The decoder is intentionally a single self-contained page that calls Ollama Cloud via the Team19 proxy. ## Related demos (PoC gallery) - CV Roast — https://poc-demos.team19.xyz/cv-roast/ - Persona Switcher — https://poc-demos.team19.xyz/persona-switcher/ - AI Dream Interpreter — https://poc-demos.team19.xyz/dream-interpreter/ - Trivia Tournament — https://poc-demos.team19.xyz/trivia-tournament/ - AI Storytelling Comic Generator — https://poc-demos.team19.xyz/comic-generator/ See the full catalog at https://poc-demos.team19.xyz/. ## Contact - Organization: Team19 - Website: https://team19.xyz - Project: PoC Demos - This demo: https://poc-demos.team19.xyz/legalese-decoder/ - Open-source parent project: https://github.com/paperclipai/paperclip ## Disclaimer This is an AI experiment, not a lawyer. The decoded report may miss context, misread clauses, or invent flags. For real decisions, consult a qualified human legal professional. The decoder is provided "as is" without warranty of any kind.