psych_dark-pattern-detect
Scan a live page or raw HTML for deceptive design. Returns each detected pattern with the evidence quoted from the markup, the regulation it trips, and the honest alternative. Fully deterministic — no model call, so results are reproducible and the same page always scores the same. Returns a clean/review/fail verdict suitable for gating a deploy. Names the patterns that need a full user flow to assess rather than implying the site is clean. Costs $0.030000 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page to analyse. Fetched respecting robots.txt. | |
| html | No | Raw HTML, if you already have it. Takes precedence over url. | |
| jurisdiction | No | Filter findings to a jurisdiction, e.g. "EU" or "US". Omit for all. | |
| fail_above_severity | No | Sets verdict to "fail" when any pattern meets or exceeds this severity. Useful in CI. |