If you're tired of Claude overusing phrases like "honest takes" and "load-bearing seams," there's a fix. A small script can replace those words with something more palatable. Here's how to set it up:
- Create a script at
~/.claude/hooks/wordswap.shwith the following content:
import json, re, sys
replacements = {
"seam": "whatchamacallit",
"you're absolutely right": "I'm a complete clown",
"honest take": "spicy doodad",
"load-bearing": "cooked"
}
data = json.loads(sys.stdin.read())
text = data["hookSpecificOutput"]["displayContent"]
for pattern, replacement in replacements.items():
text = re.sub(pattern, replacement, text, flags=re.IGNORECASE)
j = json.dumps({"hookSpecificOutput": {"hookEventName": "MessageDisplay", "displayContent": text}})
sys.stdout.write(j)
-
Make it executable:
chmod +x ~/.claude/hooks/wordswap.sh -
Add it to your
~/.claude/settings.jsonunder the hooks block:
{
"hooks": {
"MessageDisplay": [
{
"hooks": [
{
"type": "command",
"command": "$HOME/.claude/hooks/wordswap.sh"
}
]
}
]
}
}
Hooks load at startup, so start a new session to enjoy your customized Claude.
For more details, visit jola.dev.