Un-Default
v0.5.6Catch racist, sexist & ableist defaults in AI and human copy.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
un_default_scan
Scan files for inclusive-language defaults in AI-generated or human copy. Returns JSON findings. Use after editing UI text, docs, READMEs, or marketing copy.
| Parameter | Type | Description |
|---|---|---|
changedFrom | string | Optional git ref — only scan files changed since it |
failOn | string | Whether remaining findings should be treated as blocking |
paths | array | Paths to scan (default: ["."]) |
un_default_fix
Apply only safe, unambiguous 1:1 inclusive-language swaps (e.g. policeman→police officer, whitelist→allowlist). Does not touch coded/dogwhistle or soft contextual hits. Prefer dryRun first.
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | If true, report swaps without writing files |
paths | array |
un_default_feedback
Record that a finding was fine in context (or a false positive). Suppresses it locally and writes structured feedback that can improve the shared catalog.
| Parameter | Type | Description |
|---|---|---|
context * | string | |
match * | string | |
ruleId * | string | |
kind | string | Default: fine_in_context |
note | string | |
source | string |