Skip to content

feat: add pattern detection script for deterministic scanning#68

Open
Kholtien wants to merge 1 commit intoblader:mainfrom
Kholtien:add-pattern-detection-script
Open

feat: add pattern detection script for deterministic scanning#68
Kholtien wants to merge 1 commit intoblader:mainfrom
Kholtien:add-pattern-detection-script

Conversation

@Kholtien
Copy link
Copy Markdown

Summary

  • Adds scripts/detect_patterns.py — a stdlib-only Python script that scans text for measurable AI writing patterns and produces a scored report (normalised per 100 words)
  • Detects 15 of the 25 patterns programmatically: AI vocabulary, em dashes, boldface, emojis, filler phrases, hedging, copula avoidance, negative parallelisms, and more
  • Updates SKILL.md (v2.4.0) to integrate the scanner at three points in the humanisation process: pre-scan, post-scan, and final scan
  • Adds Bash(python3 *) to allowed tools so the skill can run the script via ${CLAUDE_SKILL_DIR}
  • Updates README.md with script documentation and standalone usage examples

Test plan

  • Run echo "text with AI vocabulary like delve and tapestry" | python3 scripts/detect_patterns.py and verify hits are reported
  • Run the script against the full example in SKILL.md and verify a high score on the "before" text and 0.0 on the "after" text
  • Run python3 scripts/detect_patterns.py --json to verify JSON output mode
  • Invoke /humanizer in Claude Code and verify the skill runs the scanner at each step

🤖 Generated with Claude Code

Adds scripts/detect_patterns.py — a stdlib-only Python script that scans
text for measurable AI writing patterns and produces a scored report.
Detects 15 of the 25 patterns programmatically (AI vocabulary, em dashes,
boldface, emojis, filler phrases, hedging, and more). Outputs a normalised
score per 100 words for objective before/after comparison.

Updates SKILL.md (v2.4.0) to integrate the scanner into the humanisation
process at three points: pre-scan, post-scan, and final scan. Updates
README.md with script documentation and usage examples.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant