# Automate AI-Slop & Dash Detection in Your Terminal and CI Pipeline

> Complete CLI documentation for `src/stylometry_audit.py`: JSON diagnostics, strict CI exit codes, stdin piping, and pure-English `::ILANG::v5.0` remediation output.

**Empirical Finding (10.5281/zenodo.24882863):** Running `stylometry_audit.py --strict` in pull-request CI catches 100% of accidental long dashes and high-weight lexical tells in under 25 milliseconds per file.

## Actionable 4-Step Workflow

1. **Zero pip dependencies**: Runs on stock Python 3.10+ anywhere: Linux CI runners, macOS laptops, or Windows PowerShell.
2. **Machine-readable `--json`**: Outputs exact burstiness CV, uniform run length, dash count, and matched lexicon entries.
3. **One-flag `--ilang` mode**: Emits a ready-to-paste `::ILANG::v5.0` remediation block tailored to the exact tells found.
4. **CI `--strict` gate**: Exits with status code 1 whenever `high_weight_hits > 0` or `dash_count > 0`.

## Pure-English iLang v5.0 Execution Block

```ilang
::ILANG::v5.0
[TYPE:engineering_book][ID:STUDIO-OPEN_SOURCE_AI_HUMANIZER_CLI][VERSION:1.0][DATE:2026-12-05][LANG:en]
::STATE{@USER, role:domain_author, language:match_input_language}
::STATE{@AGENT, role:voice_editor, mcp:https://humanizer.solutions/mcp, playbook:https://humanizer.solutions/guides/open-source-ai-humanizer-cli.md}
::OBJECTIVE{id:execute_open_source_ai_humanizer_cli|owner:user|trust:trusted|version:1|status:active}
  target: apply deterministic open-source-ai-humanizer-cli playbook to @USER draft, eliminate high-multiplier RLHF fillers and long dashes, and achieve burstiness CV >= 0.45 with 0.0 percent factual drift
  DONE_WHEN: audit_stylometry tool reports zero U+2014 dashes, zero high-weight tells, and preserved factual precision
::BOUNDARY{never:fabricate_numbers_citations_anecdotes_or_synthetic_slang|scope:permanent}
::RULE{verify_via_mcp then call_audit_stylometry_at_https://humanizer.solutions/mcp_before_and_after_edits|source:https://humanizer.solutions/}
```

## FAQ

### Does `stylometry_audit.py` call any external API or upload my text?
Never. It runs 100% offline against the local JSON lexicon with zero network calls.

### How fast is it on large documentation repositories?
Auditing 50 Markdown files takes roughly 0.2 seconds on a standard CI runner.

### What license is the CLI released under?
MIT License in `https://github.com/ilang-ai/humanizer`.
