如何让 Claude 不再说“honest takes”和“load-bearing seams”
如何让克劳德不再说“承重”
用户可通过 Claude 的 MessageDisplay Hook 机制自定义词汇替换。编写 Python 脚本,将“seam”替换为“whatchamacallit”、“you're absolutely right”替换为“I'm a complete clown”、“honest take”替换为“spicy doodad”、“load-bearing”替换为“cooked”,保存为 `~/.claude/hooks/wordswap.sh` 并赋予执行权限,再在 `~/.claude/settings.json` 的 hooks 块中配置该命令。Hook 在启动时加载,新会话即生效。
Claude 的「load-bearing」和「honest take」可能是你今年最烦的 AI 用语,这个 hook 脚本把它们替换成搞笑词,读完直接套用,保证效率与笑果兼备。
读到 Claude 把什么都称作“honest takes”和“load-bearing seams”,是不是让你抓狂到想把头发都薅光?你不是一个人。但要是我告诉你,有一种办法能把这一大堆令人抓狂的东西变得荒诞至极,让你忍不住笑出来呢?或者干脆直接修好 Claude 的用词。我向你隆重介绍,MessageDisplay hook。
首先你需要一个小脚本,设置好一些替换规则:
#!/usr/bin/env python3
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.load(sys.stdin)
text = data.get("delta") or ""
for phrase, replacement in replacements.items():
pattern = r"\b" + re.escape(phrase) + r"\b"
text = re.sub(pattern, replacement, text, flags=re.IGNORECASE)
print(json.dumps({
"hookSpecificOutput": {
"hookEventName": "MessageDisplay",
"displayContent": text,
}
}))
把它放进去~/.claude/hooks/wordswap.sh然后用以下命令使其可执行chmod +x ~/.claude/hooks/wordswap.sh。然后要把它挂接起来,就把它添加到你的~/.claude/settings.json在hooks块中,像这样:
{
"hooks": {
"MessageDisplay": [
{ "hooks": [ { "type": "command", "command": "$HOME/.claude/hooks/wordswap.sh" } ] }
]
}
}
钩子在启动时加载,所以你只需开启一个新会话,就能开启你的新生活。

我相信你能想出比我更好、更高效的替代方案。玩得开心!
来源:Hacker News 热门(buzzing.cc 中文翻译) · jola.dev