Skip to content

v2.0.5: the voice engine

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 04 Sep 23:21
· 18 commits to main since this release

What is new in v2

Write Like Me v1 built a voice profile and then asked the model to follow it. v2 adds code that checks the model's output.

  • Draft checker. python scripts/voice_check.py draft.md --profile voices/<name>/profile.json prints every violation with a line number and a fix, then a verdict: PASS, REVIEW, or BLOCK. Exit code 1 on BLOCK, so it works as a gate in scripts, hooks, and CI. Without a profile it runs the universal anti-AI baseline on any text.
  • Machine-readable profiles. Build mode now emits profile.json per voice: quantitative targets, banned phrase lists, and per-register policies for semicolons, colons, contractions, questions, hedges, and meta commentary.
  • Eval harness. eval/voice_eval.py scores the checker against golden passages and gates on a saved baseline, so a rule change cannot silently loosen or over-flag. Ships with 34 universal goldens at block recall 1.0 and false alarm rate 0.0.
  • Drift metrics. Sentence length, hedge density, first-person rate and more are compared against your profile targets and reported as review lines.
  • Tests. 53 unit tests, a negative control, and the repository's own Markdown passes its own checker.

Still Python standard library only. Python 3.8+.

Patch history

  • v2.0.1 asyndetic tricolon detection
  • v2.0.2 label lines are not buildup before data
  • v2.0.3 every reference and template passes the checker
  • v2.0.4 citation sections skipped by default, words inside direct quotes exempt
  • v2.0.5 related-link sections skipped

Upgrading from v1

Pull, then run /write-like-me once with an existing voice: Stage 6 in the SKILL.md tells you how to generate profile.json and goldens.jsonl for it. Existing Markdown profiles keep working unchanged.