Commit bf2b615
committed
Round 7: 21 more patterns — 復/複 confusion, number bases, syscalls, UI
The most impactful catch this round: S-Chinese conflates 復 (= "again")
and 複 (= "duplicate"). The compound 復制 (S) is widespread but should
be 複製 in T-Chinese — 復 is the wrong radical for "duplicate". Same
applies to 復用 vs 重用. These two were in the agent doc table but
never made it into the test regex set; that gap closes here.
Patterns added:
`復` / `複` distinction:
復制 → 複製 (very common — S `復` ≠ T `複`)
復用 → 重用
編寫 → 撰寫
Number bases:
二進制 → 二進位
八進制 → 八進位
十進制 → 十進位
十六進制 → 十六進位
進制 → 進位 (general; excludes the 4 specific compounds above
via negative-lookbehind)
Serial / parallel / stack / files:
串行 → 串列 堆棧 → 堆疊
二叉堆 → 二元堆積 壓縮文件 → 壓縮檔
Kernel / syscalls / messaging:
用戶態 → 使用者模式
系統調用 → 系統呼叫
調用 → 呼叫 (excludes 失調用 / 強調用 via negative-lookbehind)
反向工程 → 逆向工程
私聊 → 私訊
UI controls / parts / identifiers:
控件 → 控制項
部件 → 元件
標識 → 標示 (excludes 標識符 already covered)
圖元 → 像素
Tried and reverted:
跨度 → 跨距 / 範圍 — turned out to false-positive on TW-acceptable
「時間跨度」 in regen_llm_security_batch_zh_tw.py. 跨度 is standard
TW vocabulary too; removed from the pattern set.
s_only_patterns now holds 233 regex entries across 26 sub-sections in
the agent doc table. No new offenders in zh-tw content.
510/510 pytest pass.1 parent b48d17f commit bf2b615
2 files changed
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
416 | 416 | | |
417 | 417 | | |
418 | 418 | | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
419 | 463 | | |
420 | 464 | | |
421 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
457 | 490 | | |
458 | 491 | | |
459 | 492 | | |
| |||
0 commit comments