Repository navigation
Conversation
Add hooks/hooks.json (PreToolUse on Write|Edit|MultiEdit) running scripts/humanizer-hook.py, which blocks prose writes containing one-sighting tells. HUMANIZER_HOOK=off disables it. Validator checks the hook file and its pattern labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Split scoring into scripts/humanizer-lint.py (ste-lint style: features, per-100-word rates, weighted logistic score, hard one-sighting tells). humanizer-hook.py now routes SessionStart/UserPromptSubmit (inject rules, carry thinking findings), PreToolUse (block prose writes), and Stop (send flagged replies back). Add unittest suite and CI step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add features for §9, §15-§18, §25, fragment runs, rhetorical setups, and summary closers; split AI words into frequency-weighted tiers; scale weak features per 200 words; skip front matter, paths, tags, and mentions after "such as". Expand fixtures to 16 AI / 18 human texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same Before inputs. Fixed fact drift ("no extra cost" -> free),
an invented detail, and a §6 triad. Blind-test note now refers to
the earlier rewrite it measured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add Status, Requirements, Configuration, Testing, and Support; split long sentences; label code fences; fix stale scorer notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Usage now follows Installation; Configuration comes after. Intro names both parts and that the plugin enables hooks in Claude Code settings. Scorer: a lead-in line ending in a colon is not a closer (new test). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The big update: Humanizer now enforces itself in Claude Code
Until now, Humanizer only ran when someone called
/humanizer. With this PR, the Claude Code plugin also installs hooks. They check everything Claude writes in every session and project, and send text with AI tells back for a rewrite. Installing the plugin is enough to turn them on, with no extra setup..md,.mdx,.markdown,.txt,.rst,.adoc)PreToolUseonWrite,Edit,MultiEditStopSessionStart,UserPromptSubmit,StopHUMANIZER_HOOK=offturns every hook off. This repo sets it in.claude/settings.json, becauseSKILL.mdlists every tell.How the hooks decide
scripts/humanizer-lint.pyscores text from 0 to 1 with a small linear model over theSKILL.mdpatterns. It follows the approach ofste-lint, the heuristic checker in the public Simplified Technical English writing kit: strip code and quotes, count features, normalize by length, and weight the counts.scripts/humanizer-hook.pyroutes each hook event to the scorer.Evidence
SKILL.md, stop-slop'sreferences/phrases.md).SessionStartinjected the rules. TheStophook caught a reply full of tells (score 0.99) and sent it back, and the loop guard held.Current edges
python3onPATH. Without it they fail open and let text through.npx skills, pi, and ZIP installs get the skill alone.Other changes
scripts/validate-package.pycheckshooks/hooks.jsonand the§labels in the scorer.tests/adds 15 tests for the scorer and every hook event. CI runs them.Review notes
scripts/humanizer-hook.py.SKILL.mdis unchanged, so the skill stays portable. Only the Claude Code plugin gains hooks.Testing
To try it locally, run
claude plugin marketplace add ./andclaude plugin install humanizer@humanizer. Start a new session outside this repo and run/hooks.🤖 Generated with Claude Code