Commit c198b5f
committed
Extend zh-tw vocab guard with 24 more S-Chinese loan-word patterns
Each pattern uses Traditional characters but is Simplified-Chinese
vocabulary — a plain T-vs-S character pass cannot catch them.
Hardware:
硬件 → 硬體 主板 → 主機板 顯卡 → 顯示卡
硬盤 → 硬碟 軟盤 → 軟碟 光盤 → 光碟
Printing / I/O:
打印 / 打印機 → 列印 / 印表機
串口 → 序列埠
Crypto / data:
密鑰 → 金鑰
數組 → 陣列
變量 → 變數 (excludes `不變量` = invariant via negative-lookbehind;
`不變量` is the math / formal-verification term and is
accepted in TW)
字節 → 位元組
比特 → 位元 (excludes `比特幣` = bitcoin via negative-lookahead;
the bitcoin loan word is accepted in TW)
Code / async:
注釋 → 註解 / 註釋 模板 → 範本
跟蹤 → 追蹤 異步 → 非同步
UI / display / media:
圖標 → 圖示
高清 → 高畫質
寬屏 → 寬螢幕
信道 → 通道 / 頻道
鏡像文件 → 映像檔
文件夾 → 資料夾
短信 → 簡訊
Caught one real offender in scripts/regen_llm_security_batch_zh_tw.py:
"讓 origin-entity 不變量明確化…" was OK (math invariant); a separate
`…的變量資訊化…` line WAS S-Chinese drift and is fixed to `變數`.
.claude/agents/language-vocabulary-check.md table now mirrors the
24 additions so future LLM sessions get the same lexicon when they
read the agent doc instead of the regex set.
510/510 tests pass.1 parent 2a3f84d commit c198b5f
2 files changed
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
74 | 98 | | |
75 | 99 | | |
76 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
250 | 285 | | |
251 | 286 | | |
252 | 287 | | |
| |||
0 commit comments