Skip to content

Commit 08d056f

Browse files
committed
Add 35 more S-Chinese-loan-word patterns: OOP / touch / audio-video / storage / DS / desktop
Continues the language-vocabulary-check rollout. None caught existing offenders this round — the guard is now ahead of the codebase, which is the safe state for a regression test. Test patterns added (mirrored in the agent doc table): OOP / type system: 多態 -> 多型 重定義 -> 重新定義 / 覆寫 解引用 -> 解參考 標識符 -> 識別字 動態庫 -> 動態函式庫 靜態庫 -> 靜態函式庫 共享庫 -> 共用函式庫 整型 -> 整數 素數 -> 質數 均值 -> 平均值 Touch / screen (mobile): 觸屏 -> 觸控螢幕 觸摸 -> 觸控 全屏 -> 全螢幕 截屏 -> 螢幕擷取 / 截圖 顯示屏 -> 螢幕 Audio / video: 音頻 -> 音訊 音視頻 -> 影音 視頻會議 -> 視訊會議 Storage compounds: U盤 -> 隨身碟 雲盤 -> 雲端硬碟 網盤 -> 網路硬碟 系統盤 -> 系統碟 啟動盤 -> 開機磁碟 Networking: 組播 -> 多播 廣域網 -> 廣域網路 (WAN) 局域網 -> 區域網路 (LAN) Data structures: 鏈表 -> 鏈結串列 二叉樹 -> 二元樹 散列表 -> 雜湊表 DB / DevOps: 存儲過程 -> 預存程序 灰度發布 -> 灰階發布 Desktop OS surfaces: 進度條 -> 進度列 任務管理器 -> 工作管理員 文件管理器 -> 檔案管理員 / 檔案總管 注冊表 -> 登錄檔 Verbs / interaction: 激活 -> 啟用 拖拽 -> 拖曳 單擊 -> 點擊 / 按一下 復選 -> 核取 The agent doc grew matching subsections for each category so future maintainers see the new entries grouped with their domain peers. 510/510 pytest pass.
1 parent 2b8af8a commit 08d056f

2 files changed

Lines changed: 129 additions & 0 deletions

File tree

.claude/agents/language-vocabulary-check.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,87 @@ right bucket.
230230
| 啟動 | 啟動 (same) | start |
231231
| 重啟 | 重新啟動 / 重啟 (both) | restart |
232232
| 卸載 | 解除安裝 / 卸載 (both) | uninstall |
233+
| 激活 | 啟用 | activate |
234+
| 拖拽 | 拖曳 | drag |
235+
| 單擊 | 點擊 / 按一下 | single-click |
236+
| 復選 | 核取 | check (a checkbox) |
237+
238+
#### Type system / OOP (continued)
239+
240+
| S-Chinese | T-Chinese | Meaning |
241+
|---|---|---|
242+
| 多態 | 多型 | polymorphism |
243+
| 重定義 | 重新定義 / 覆寫 | redefine / override |
244+
| 解引用 | 解參考 | dereference |
245+
| 標識符 | 識別字 / 識別碼 | identifier |
246+
| 動態庫 | 動態函式庫 | dynamic library (`.so` / `.dll`) |
247+
| 靜態庫 | 靜態函式庫 | static library |
248+
| 共享庫 | 共用函式庫 | shared library |
249+
| 整型 | 整數 / 整數型別 | integer type |
250+
| 素數 | 質數 | prime number |
251+
| 均值 | 平均值 | mean |
252+
253+
#### Touch / screen (mobile)
254+
255+
| S-Chinese | T-Chinese | Meaning |
256+
|---|---|---|
257+
| 觸屏 / 觸摸屏 | 觸控螢幕 | touch screen |
258+
| 觸摸 | 觸控 | touch |
259+
| 全屏 | 全螢幕 | fullscreen |
260+
| 截屏 | 螢幕擷取 / 截圖 | screenshot |
261+
| 顯示屏 | 螢幕 / 顯示器 | display |
262+
263+
#### Audio / video
264+
265+
| S-Chinese | T-Chinese | Meaning |
266+
|---|---|---|
267+
| 音頻 | 音訊 | audio |
268+
| 音視頻 | 影音 | audio + video |
269+
| 視頻會議 | 視訊會議 | video conference |
270+
271+
#### Storage compounds
272+
273+
| S-Chinese | T-Chinese | Meaning |
274+
|---|---|---|
275+
| U盤 | 隨身碟 | USB flash drive |
276+
| 雲盤 | 雲端硬碟 | cloud drive |
277+
| 網盤 | 網路硬碟 | network drive |
278+
| 系統盤 | 系統碟 | system drive |
279+
| 啟動盤 | 開機磁碟 | boot disk |
280+
| 內存卡 | 記憶卡 | memory card |
281+
282+
#### More networking
283+
284+
| S-Chinese | T-Chinese | Meaning |
285+
|---|---|---|
286+
| 組播 | 多播 | multicast |
287+
| 廣域網 | 廣域網路 | WAN |
288+
| 局域網 | 區域網路 | LAN |
289+
| 城域網 | 都會網路 | MAN |
290+
291+
#### More data structures
292+
293+
| S-Chinese | T-Chinese | Meaning |
294+
|---|---|---|
295+
| 鏈表 | 鏈結串列 / 連結串列 | linked list |
296+
| 二叉樹 | 二元樹 | binary tree |
297+
| 散列表 | 雜湊表 | hash table |
298+
299+
#### Cloud / DevOps (continued)
300+
301+
| S-Chinese | T-Chinese | Meaning |
302+
|---|---|---|
303+
| 存儲過程 | 預存程序 | stored procedure (DB) |
304+
| 灰度發布 | 灰階發布 / 漸進式發布 | canary release |
305+
306+
#### Desktop OS surfaces
307+
308+
| S-Chinese | T-Chinese | Meaning |
309+
|---|---|---|
310+
| 進度條 | 進度列 | progress bar |
311+
| 任務管理器 | 工作管理員 | task manager |
312+
| 文件管理器 | 檔案管理員 / 檔案總管 | file manager |
313+
| 注冊表 | 登錄檔 | Windows registry |
233314

234315
### Simplified Chinese (zh-cn) — avoid Traditional vocabulary
235316

tests/test_i18n.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,54 @@ def test_zh_tw_files_use_traditional_chinese_vocabulary():
335335
# Verbs.
336336
(re.compile(r"搜索"), "搜索 → 搜尋"),
337337
(re.compile(r"查找"), "查找 → 尋找"),
338+
# Round 4 — more OOP / type-system / language-construct terms.
339+
(re.compile(r"多態"), "多態 → 多型"),
340+
(re.compile(r"重定義"), "重定義 → 重新定義 / 覆寫"),
341+
(re.compile(r"解引用"), "解引用 → 解參考"),
342+
(re.compile(r"標識符"), "標識符 → 識別字"),
343+
(re.compile(r"動態庫"), "動態庫 → 動態函式庫"),
344+
(re.compile(r"靜態庫"), "靜態庫 → 靜態函式庫"),
345+
(re.compile(r"共享庫"), "共享庫 → 共用函式庫"),
346+
# Mobile / touch / screen specifics.
347+
(re.compile(r"觸屏"), "觸屏 → 觸控螢幕"),
348+
(re.compile(r"觸摸"), "觸摸 → 觸控"),
349+
(re.compile(r"全屏"), "全屏 → 全螢幕"),
350+
(re.compile(r"截屏"), "截屏 → 螢幕擷取 / 截圖"),
351+
(re.compile(r"顯示屏"), "顯示屏 → 螢幕 / 顯示器"),
352+
# Audio / video.
353+
(re.compile(r"音頻"), "音頻 → 音訊"),
354+
(re.compile(r"音視頻"), "音視頻 → 影音"),
355+
(re.compile(r"視頻會議"), "視頻會議 → 視訊會議"),
356+
# Storage compounds.
357+
(re.compile(r"U盤"), "U盤 → 隨身碟"),
358+
(re.compile(r"雲盤"), "雲盤 → 雲端硬碟"),
359+
(re.compile(r"網盤"), "網盤 → 網路硬碟"),
360+
(re.compile(r"系統盤"), "系統盤 → 系統碟"),
361+
(re.compile(r"啟動盤"), "啟動盤 → 開機磁碟"),
362+
# Networking.
363+
(re.compile(r"組播"), "組播 → 多播"),
364+
(re.compile(r"廣域網"), "廣域網 → 廣域網路 (WAN)"),
365+
(re.compile(r"局域網"), "局域網 → 區域網路 (LAN)"),
366+
# Data structures.
367+
(re.compile(r"鏈表"), "鏈表 → 鏈結串列 / 連結串列"),
368+
(re.compile(r"二叉樹"), "二叉樹 → 二元樹"),
369+
(re.compile(r"散列表"), "散列表 → 雜湊表"),
370+
# Math.
371+
(re.compile(r"素數"), "素數 → 質數"),
372+
(re.compile(r"整型"), "整型 → 整數 / 整數型別"),
373+
(re.compile(r"均值"), "均值 → 平均值"),
374+
# ML / DB / DevOps.
375+
(re.compile(r"激活"), "激活 → 啟用"),
376+
(re.compile(r"存儲過程"), "存儲過程 → 預存程序"),
377+
(re.compile(r"灰度發布"), "灰度發布 → 灰階發布"),
378+
# UI / desktop / interaction.
379+
(re.compile(r"進度條"), "進度條 → 進度列"),
380+
(re.compile(r"復選"), "復選 → 核取"),
381+
(re.compile(r"單擊"), "單擊 → 點擊 / 按一下"),
382+
(re.compile(r"拖拽"), "拖拽 → 拖曳"),
383+
(re.compile(r"任務管理器"), "任務管理器 → 工作管理員"),
384+
(re.compile(r"文件管理器"), "文件管理器 → 檔案管理員 / 檔案總管"),
385+
(re.compile(r"注冊表"), "注冊表 → 登錄檔"),
338386
]
339387
zh_tw_paths = [
340388
_REPO_ROOT / "scripts" / "regen_llm_security_batch_zh_tw.py",

0 commit comments

Comments
 (0)