Repository navigation
Releases
v3.2.0: German
German (Hochdeutsch) as a second language.
- A profile records its language as
"language": "de".stylometry.py --language deanalyzes a German corpus, andvoice_profile.py initcarries the language into the profile.voice_check.py --language de,voice_eval.py --language deandcorpus_conflicts.py --language derun the German baseline without a profile. - The language is detected automatically.
stylometry.py,corpus_conflicts.pyandvoice_check.pywithout a profile pick English or German from the text (voice_lang.detect_language, marker words plus umlauts). Too little evidence gives English.--languageoverrides the detection, and a profile keeps its own language.voice_check.pyreports the language it used. - New
references/00-universal-baseline-de.md. Every universal rule runs with German word lists: stance openers, filler openers and chatbot residue, performative verbs,nicht nur … sondern auch, summary openers, evaluative adjectives (stems that match the inflected forms), intensifiers, antithesis, closing caveat, benefit tail and tagline. - New German-only rules in
scripts/voice_rules_de.py:DE_QUOTES,DE_DASH,DE_NUMBER_FORMAT,DE_HEADING_CASE,DE_CALQUE,DE_PARTICIPLE_TAIL,DE_ADDRESS_MIX,DE_GENDER_MIX,DE_GENDER_FORM,DE_CONNECTIVE_DENSITY,DE_ASCII_UMLAUTandDE_SS_SPELLING. Two register keys for German:en_dashandgender_characters. Gender forms are the writer's choice. The default checks only that one text does not mix them. - The measurements handle German: words with umlauts stay whole, German abbreviations (
z. B.,bzw.) and ordinals (am 2. November) no longer split sentences, German function words, hedges, boosters and pronouns, Flesch reading ease with the Amstad formula and the Wiener Sachtextformel, the spaCy modelde_core_news_sm, German passive and nominal style. A German corpus has no contraction measure. - The hook recognizes German prompts and the German phrases that switch the explanation step.
- A star or underscore between two letters is no longer read as Markdown emphasis, so
Kund*innen … Kund*innenkeeps its stars. - 52 German goldens in
eval/goldens/universal-de.goldens.jsonlwith the baselineeval/baselines/universal-de.json, andtests/test_german.py. The checks workflow installsde_core_news_smand runs the German gate. Every English golden gives the same verdict and the same rule hits as in 3.1.1. - The rules come from the German Wikipedia guide to AI-generated text (revision of 2026-10-29), Irrgang et al. (KONVENS 2024) and German typography rules.
v3.1.1: readability scores restored, lexical density from spaCy
compute_readabilityinscripts/stylometry.pyreturned{}on every textstat release, because it calledtextstat.word_count, which textstat does not have, and one bareexceptdiscarded all five scores. Each score is now computed on its own, so Flesch-Kincaid grade, Gunning Fog, Flesch reading ease and syllables per word are back. Reported by Michael Wheatland in issue #1.lexical_densitymoved from the textstat tier to the spaCy tier underdeep_syntactic. It is now content words (nouns, proper nouns, verbs, adjectives, adverbs) divided by all alphabetic words. The old formula would have been 1.0 for every text once the missing call was replaced. Both report renderers read the new key.- New
tests/test_optional_tiers.pychecks that both optional tiers return numbers when their libraries are installed. The checks workflow installs textstat, spaCy anden_core_web_smso these tests run there.
v3.1.0: the two-message method, with the explanation step switchable
Version 3 adds the two-message method, six reader-text checks, the explanation and rejected-phrase checks, and Claude Code hooks. 3.1.0 lets the explanation step be turned off. This release covers 3.0.0, 3.0.1 and 3.1.0.
3.1.0 (2026-11-02)
- The explanation step can be turned off. It stays on by default. For one prompt, "just write it", "write it directly", "skip the explanation", "without the explanation" or "no explanation first" turns it off, and "explain first", "explain it first" or "with the explanation" turns it on. For a voice,
"explainFirst": falseinhook.jsonturns it off.WRITE_LIKE_ME_EXPLAIN=off|onwins overhook.json, and the prompt phrase wins over both. - With the step off, the prompt hook asks for the text written directly from the request and the source, with the same no-additions rule and the checker run.
SKILL.md,references/09-how-to-write.md,references/10-hooks.mdand the README describe the switch. Four hook tests cover it.
3.0.1 (2026-10-30)
COMPRESSED_ANTITHESISnow covers "instead of". In a line under 12 words, a heading or a label it flags any "instead of" tail. In longer prose it flags an "instead of X" that ends at punctuation when the negated half has four words or fewer, so "every action the board has instead of a few, so" is flagged and "the small model instead of the large one because" passes.- Universal goldens
u-antith-002andu-antith-003and a unit test cover both cases. The universal baseline is refreshed.
3.0.0 (2026-10-06)
Method layer
- New
references/09-how-to-write.md. Write a reader text the way the subject would be explained to the author in chat. Explain first, then write the text by cutting the approved explanation. Includes the moves that are never allowed and the rules for working with the author. SKILL.mdgains the section "When this skill applies" and the two-message method as a visible step in write mode.
New checks in scripts/voice_check.py
CLOSING_CAVEAT,BENEFIT_TAIL,TAGLINEandLENGTH_BAND, each configurable per register in the profile.COMPRESSED_ANTITHESISnow covers short lines, headings and labels, and no longer flagsrather thaninside a long sentence.--explanation FILEreports every number and proper noun that the explanation does not contain asADDITION.--rejected FILEblocks any phrase from the file, with case and whitespace ignored, asREPEATED_PHRASE.TRICOLONis configurable per register and defaults toinfo, which is reported and leaves the verdict alone.- New goldens for every new rule in
eval/goldens/reader.goldens.jsonl, with their own baseline.
Walkthrough fixes
- A feature count of 0 in a corpus under 20,000 words now produces a provisional rule for the author to confirm and never a ban. Below 20,000 words every distribution-based rule is emitted as provisional and listed under
provisionalinprofile.json. - Stage 5 now says what a yes and a no change.
- Stage 7 no longer needs the Claude command line tool. It scores paragraphs from files with
python eval/voice_eval.py verify. - The hedge tolerance is one profile value,
thresholds.hedge_tolerance, that the checker andreferences/07-verification.mdshare. - Templates and
references/06-skill-emission.mduse the real paths and describevoices/<name>/. python scripts/voice_profile.py preflightprints missing packages and a small corpus before the analysis starts.
Walkthrough fixes, second pass
stylometry.py --outputcreates the output folder.--reportandgenerate_report_from_json.pywrite into the voice folder by default and never into the corpus folder. The analysis and the author-turn extraction skip_STYLE-PROFILE-*.mdfiles and anyvoices/folder inside the corpus.stylometry.pyreports a contraction count and a rate per 100 words.references/04-rule-mining.mdturns a zero count into the candidate rule "no contractions", provisional under 20,000 words.- The
contractions,questionsandsemicolonspolicies behave the same way.reviewgives a review hit andforbiddengives a block hit, andreferences/00-universal-baseline.mdstates it. Questions underforbiddenused to give review and now give block.voice_profile.py inittells the author thatcontractionsandquestionsstart as off. - New
scripts/corpus_conflicts.pyruns the universal baseline over the author's own corpus and lists every rule that blocks, for the author to decide before emission. eval/voice_eval.py verify --strictis the documented default in Stage 7 for the author's own rules. Stage 5 sets aside the held-out samples, and Stage 7 gives the exact verify and goldens gate commands.- One corpus size statement everywhere. 20,000 words for reliable distributions, 5,000 words as the floor below which the build stops, and provisional rules between them.
- SKILL.md states where voices live, how the register is chosen, and that drift lines on a text cut from an approved explanation are reported to the author and not fixed silently. A
.gitkeepno longer counts as a voice. - The hook passes
--explanationand--rejectedwhenhook.jsonnamesexplanationFileandrejectedFileor whenWRITE_LIKE_ME_EXPLANATIONandWRITE_LIKE_ME_REJECTEDare set. A REVIEW with drift lines prints the drift lines.WRITE_LIKE_ME_PROFILEor aprofileentry inhook.jsonmoves the voice folder anywhere. references/10-hooks.mdno longer hardcodes the install path.- The Claude.ai export template lists tricolon as
info. The dangling plan references are gone. Console notes are ASCII. "results may vary" and "your mileage may vary" are closing-caveat phrases.
Hooks
scripts/writing-gate-hook.mjsadds apromptmode and apost-writemode for Claude Code. The voice comes from--voiceorWRITE_LIKE_ME_VOICE, and the path rules fromvoices/<name>/hook.json. Setup is inreferences/10-hooks.md.
v2.0.10: per-register exclamations and five rule fixes
Five patch releases since v2.0.5, all driven by running the checker over a real author's approved writing and fixing the rule whenever the approved text blocked.
2.0.10
- New rule
EXCLAMATIONflags an exclamation mark that ends a prose sentence. Off by default, turned on per register withexclamationsset to review or block.
2.0.9
- A line that ends in a colon closes its own segment, so a lead-in colon before a list is not read as an announcement colon.
2.0.8
- Label detection no longer treats a line whose head starts with a determiner as a label, so
The result: variation increases.is caught again.
2.0.7
- Label lines such as
**Date:** March 20, 2026and fully bold lines are segmented as labels, never as prose. clearlybefore a visibility participle such as marked, visible, or labeled is a manner adverb and no longer an empty intensifier.- New register key
empty_intensifiers(off, review, block) sets the severity of the empty intensifier rule per register.
2.0.6
- The announcement colon rule blocks only when the text before the colon is five words or fewer. A colon after a full clause that introduces an elaboration scores as review.
- New profile key
rule_overridesmaps a rule id to off, review, or block for one voice.
Upgrading: pull the tag and re-run python tests/run_tests.py and the eval gate. Existing profiles validate unchanged. The new keys are optional.
v2.0.5: the voice engine
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.jsonprints 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.jsonper voice: quantitative targets, banned phrase lists, and per-register policies for semicolons, colons, contractions, questions, hedges, and meta commentary. - Eval harness.
eval/voice_eval.pyscores 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.