Skip to content

Releases

v3.2.0: German

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 03 Nov 14:35

German (Hochdeutsch) as a second language.

  • A profile records its language as "language": "de". stylometry.py --language de analyzes a German corpus, and voice_profile.py init carries the language into the profile. voice_check.py --language de, voice_eval.py --language de and corpus_conflicts.py --language de run the German baseline without a profile.
  • The language is detected automatically. stylometry.py, corpus_conflicts.py and voice_check.py without a profile pick English or German from the text (voice_lang.detect_language, marker words plus umlauts). Too little evidence gives English. --language overrides the detection, and a profile keeps its own language. voice_check.py reports 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_UMLAUT and DE_SS_SPELLING. Two register keys for German: en_dash and gender_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 model de_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*innen keeps its stars.
  • 52 German goldens in eval/goldens/universal-de.goldens.jsonl with the baseline eval/baselines/universal-de.json, and tests/test_german.py. The checks workflow installs de_core_news_sm and 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

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 03 Nov 04:06
  • compute_readability in scripts/stylometry.py returned {} on every textstat release, because it called textstat.word_count, which textstat does not have, and one bare except discarded 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_density moved from the textstat tier to the spaCy tier under deep_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.py checks that both optional tiers return numbers when their libraries are installed. The checks workflow installs textstat, spaCy and en_core_web_sm so these tests run there.

v3.1.0: the two-message method, with the explanation step switchable

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 03 Nov 03:56

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": false in hook.json turns it off. WRITE_LIKE_ME_EXPLAIN=off|on wins over hook.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.md and the README describe the switch. Four hook tests cover it.

3.0.1 (2026-10-30)

  • COMPRESSED_ANTITHESIS now 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-002 and u-antith-003 and 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.md gains 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, TAGLINE and LENGTH_BAND, each configurable per register in the profile.
  • COMPRESSED_ANTITHESIS now covers short lines, headings and labels, and no longer flags rather than inside a long sentence.
  • --explanation FILE reports every number and proper noun that the explanation does not contain as ADDITION.
  • --rejected FILE blocks any phrase from the file, with case and whitespace ignored, as REPEATED_PHRASE.
  • TRICOLON is configurable per register and defaults to info, 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 provisional in profile.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 and references/07-verification.md share.
  • Templates and references/06-skill-emission.md use the real paths and describe voices/<name>/.
  • python scripts/voice_profile.py preflight prints missing packages and a small corpus before the analysis starts.

Walkthrough fixes, second pass

  • stylometry.py --output creates the output folder. --report and generate_report_from_json.py write into the voice folder by default and never into the corpus folder. The analysis and the author-turn extraction skip _STYLE-PROFILE-*.md files and any voices/ folder inside the corpus.
  • stylometry.py reports a contraction count and a rate per 100 words. references/04-rule-mining.md turns a zero count into the candidate rule "no contractions", provisional under 20,000 words.
  • The contractions, questions and semicolons policies behave the same way. review gives a review hit and forbidden gives a block hit, and references/00-universal-baseline.md states it. Questions under forbidden used to give review and now give block. voice_profile.py init tells the author that contractions and questions start as off.
  • New scripts/corpus_conflicts.py runs 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 --strict is 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 .gitkeep no longer counts as a voice.
  • The hook passes --explanation and --rejected when hook.json names explanationFile and rejectedFile or when WRITE_LIKE_ME_EXPLANATION and WRITE_LIKE_ME_REJECTED are set. A REVIEW with drift lines prints the drift lines. WRITE_LIKE_ME_PROFILE or a profile entry in hook.json moves the voice folder anywhere.
  • references/10-hooks.md no 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.mjs adds a prompt mode and a post-write mode for Claude Code. The voice comes from --voice or WRITE_LIKE_ME_VOICE, and the path rules from voices/<name>/hook.json. Setup is in references/10-hooks.md.

v2.0.10: per-register exclamations and five rule fixes

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 05 Sep 02:29

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 EXCLAMATION flags an exclamation mark that ends a prose sentence. Off by default, turned on per register with exclamations set 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, 2026 and fully bold lines are segmented as labels, never as prose.
  • clearly before 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_overrides maps 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

Choose a tag to compare

@Hiro-Inagawa Hiro-Inagawa released this 04 Sep 23:21

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.