How opsharp/unslop works
Unslop is an AI-writing humanizer delivered as an agent skill plus standalone Python tools. The user-facing flow is to scan a draft for phrase, sentence-structure, and document-silhouette issues; an agent reviews candidates in context, then applies targeted edits subject to preservation checks. The repository also includes voice teaching/scoring and a substantial benchmark harness. The listed tree omits the skill command files, so their internal routing is not represented; links below rely on README statements or shown source/index references.
Main entry points: core_runner.py Core benchmark runner · structure_scan.py Structure scanner · banned_phrase_scan.py Phrase scanner · validate_preservation.py Preservation validator
Components 19
Writing detection
- Phrase scanner
scripts/banned_phrase_scan.py - Structure scanner
scripts/structure_scan.py - Silhouette scanner
scripts/silhouette_scan.py - Language helpers
scripts/_lang.py - Readability metrics
scripts/readability_metrics.py
Editing safeguards
- Suggestion runner
scripts/suggest.py - Constraint extraction
scripts/extract_constraints.py - Preservation validator
scripts/validate_preservation.py - Edit diff check
scripts/diff_check.py
Voice tools
- Pair calibration
scripts/calibrate_pairs.py - Voice profile
scripts/voice_profile.py - Voice scoring
scripts/voice_score.py - Voice card
scripts/voice_card.py
Product evaluation
- Core benchmark runner
evals/core_runner.py - Model adapter
evals/model_generate.py - Benchmark metrics
evals/core_metrics.py - Model parity harness
evals/run_model_parity.py - Structure climb harness
evals/run_structure_climb.py
Other components
- Writer / agent
Connections 30
- Writer / agent → Phrase scanner: scans text
README.md - Writer / agent → Structure scanner: scans text
README.md - Writer / agent → Silhouette scanner: scans text
README.md - Phrase scanner → Writer / agent: returns candidates
README.md - Structure scanner → Writer / agent: returns candidates
README.md - Silhouette scanner → Writer / agent: returns candidates
README.md - Writer / agent → Suggestion runner: requests suggestions
scripts/suggest.py - Suggestion runner → Phrase scanner: calls scanner
scripts/suggest.py - Suggestion runner → Structure scanner: calls scanner
scripts/suggest.py - Suggestion runner → Preservation validator: checks edits
scripts/suggest.py - Writer / agent → Constraint extraction: extracts constraints
README.md - Constraint extraction → Preservation validator: provides constraints
scripts/validate_preservation.py - Writer / agent → Pair calibration: teaches voice
README.md - Voice card → Voice profile: reads profile
scripts/voice_card.py - Voice scoring → Voice profile: reads profile
scripts/voice_score.py - Core benchmark runner → Model adapter: requests generation
evals/core_runner.py - Core benchmark runner → Phrase scanner: calls scanner
evals/core_runner.py - Core benchmark runner → Structure scanner: calls scanner
evals/core_runner.py - Core benchmark runner → Silhouette scanner: calls scanner
evals/core_runner.py - Core benchmark runner → Readability metrics: calls metrics
evals/core_runner.py - Core benchmark runner → Constraint extraction: extracts constraints
evals/core_runner.py - Core benchmark runner → Preservation validator: validates rewrite
evals/core_runner.py - Core benchmark runner → Edit diff check: checks changes
evals/core_runner.py - Benchmark metrics → Core benchmark runner: scores results
evals/core_metrics.py - Model parity harness → Phrase scanner: compares detection
evals/run_model_parity.py - Model parity harness → Structure scanner: compares detection
evals/run_model_parity.py - Model parity harness → Preservation validator: checks outcomes
evals/run_model_parity.py - Structure climb harness → Structure scanner: scans drafts
evals/run_structure_climb.py - Structure climb harness → Silhouette scanner: scans drafts
evals/run_structure_climb.py - Structure climb harness → Preservation validator: checks rewrites
evals/run_structure_climb.py