Skip to content

llm-cliche-highlighter: add “worth naming” pattern#297

Merged
simonw merged 1 commit into
mainfrom
claude/llm-cliche-pattern-3ytdf3
Jul 18, 2026
Merged

llm-cliche-highlighter: add “worth naming” pattern#297
simonw merged 1 commit into
mainfrom
claude/llm-cliche-pattern-3ytdf3

Conversation

@simonw

@simonw simonw commented Jul 18, 2026

Copy link
Copy Markdown
Owner

New LLM cliche: "‪That loss is real and it's worth naming‬" - tell me what pattern you'll add before you add it

Adds a new cliché pattern to the LLM cliché highlighter: “Worth naming” (id worth-naming) — the therapist-voiced validation move, as in “That loss is real and it’s worth naming.”

/(?:\b(?:is|are|was|were|feels?|felt|seems?|seemed)|[']s)\s+(?:\w+\s+){0,2}?worth\s+naming\b(?!\s+names\b)|\bworth\s+naming\s*:/gi

Details:

  • Anchors on a linking verb (is/are/was/were/feels/seems/'s) plus up to two filler words before “worth naming”, so “it’s worth naming”, “is real and worth naming”, “the grief here is worth naming”, and “feels worth naming out loud” all match, along with the standalone “Worth naming:” opener.
  • A negative lookahead skips “naming names” — a different, human idiom.
  • On the canonical example sentence, the existing “Is real … and” pattern independently flags the “is real and” half, so the full cliché double-highlights.
  • Adds 5 positive and 3 negative test cases, plus a sentence in the built-in example text that trips the new pattern exactly once, preserving the “example trips every pattern exactly once” test invariant.

All 73 self-tests pass headlessly via the Node one-liner in the page footer.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WpUUmMbM1zhwtjk5i4MkEy


Generated by Claude Code

Detects the therapist-voiced validation move — "that loss is real and
it's worth naming", "it's worth naming that ...", and the "Worth
naming:" opener — while skipping the unrelated "naming names" idiom.
Adds test cases and an example-text sentence that trips it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpUUmMbM1zhwtjk5i4MkEy
@claude

claude Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@simonw
simonw merged commit 409010a into main Jul 18, 2026
1 of 4 checks passed
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.

2 participants