Un-Default

v0.5.6
io.github.NomadBuilder/un-default Checked 4 days ago Published 3 months ago

Catch 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.

ParameterTypeDescription
changedFromstringOptional git ref — only scan files changed since it
failOnstringWhether remaining findings should be treated as blocking
pathsarrayPaths 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.

ParameterTypeDescription
dryRunbooleanIf true, report swaps without writing files
pathsarray

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.

ParameterTypeDescription
context *string
match *string
ruleId *string
kindstringDefault: fine_in_context
notestring
sourcestring