AI
Policy Simplifier Lab
Paste terms or privacy text - plain-language summary, key bullets, and watch-outs (not legal advice).
Run this experiment yourself
Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.
Local development
cd apps/experiments/policy-simplifier-lab pnpm install pnpm dev
Then open http://localhost:3010.
This is an experimental demo. Outputs are not legal advice.
Policy Simplifier Lab rewrites terms/privacy excerpts into plain English with generateObject: a short summary, key bullets, and watch-outs. No AI keys - 503.
Features
- Plain summary – 2–4 sentences.
- Key bullets – collection, sharing, retention, rights.
- Watch outs – careful-reader callouts.
- Sample privacy excerpt.
- Honest unavailable state.
Server Reference
POST /api/simplify
{ "policy": "..." }Success (200)
{
"plainSummary": "We collect email and usage data…",
"bullets": ["You can request deletion…"],
"watchOuts": ["Legal hold can keep records up to 7 years."],
"provider": "ai-gateway"
}| Status | Cause |
|---|---|
503 | No AI provider |
400 | Empty policy |
Implementation Details
clampSummary trims and caps bullets (16) and watch-outs (8).
Use Cases
- Internal policy literacy drafts.
- Teach plain-language rewrite schemas.
- Pair with Contract Clause Finder for legal-ish docs.
Limitations
- Not legal advice.
- Truncates long policies (~18k chars).
- No auth / rate limits.
Use in your project
Reuse the summary + bullets schema from app/api/simplify/route.ts.
Deployment
Local Development
cd apps/experiments/policy-simplifier-lab
pnpm install
pnpm devConfiguration
| Variable | Required | Purpose |
|---|---|---|
AI_GATEWAY_API_KEY | Yes (or OPENAI_API_KEY) | Preferred provider |
OPENAI_API_KEY | No | Fallback |
AI_MODEL | No | Model override |
Vercel / Next.js Features Used
- AI SDK
generateObject - Vercel AI Gateway
- Route Handlers
- Zod