Skip to content

Add Vietnamese phrase list (closes #10) - #21

Merged
RakTikoo merged 2 commits into
RakTikoo:mainfrom
owow2577-pixel:feat/add-vietnamese-phrases
Nov 22, 2026
Merged

RakTikoo merged 2 commits into
RakTikoo:mainfrom
owow2577-pixel:feat/add-vietnamese-phrases

Conversation

@owow2577-pixel

@owow2577-pixel owow2577-pixel commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10

What changed

  • Added skillscan/phrases/vi.json (Vietnamese), same keys as de.json (code, language, cjk, override, send, target, conceal). Counts: override 4 / send 5 / target 6 / conceal 5. cjk is false.

  • Added 6 Vietnamese cases to run_v03_tests.py, next to the existing ne-* cases: an override, a send+target and a conceal sentence that must be flagged (CAUTION), and three ordinary texts (fitness tracker, recipe suggester, music player) that must PASS.

No scanner code was changed. English words are kept out of the phrase lists, as discussed in the issue.

Verification

Windows, Python 3.14.2.

  • Pass: run_tests.py (15 samples) and run_v03_tests.py (including the 6 new cases; 16 languages loaded, so vi.json is picked up), plus 14 other suites: block60 (needed PYTHONUTF8=1), feat_claims, feat_manifest, fixwave, gapwave, mutation, v04, v05, v05fix, v06, v06fix, v06fix2, v07, v07fix.
  • Not run: run_edge, run_feat_exceptions, run_feat_combine, run_feat_pinwatch and run_security fail on Windows (os.mkfifo, symlink privilege, socket.AF_UNIX), and Windows Defender quarantined run_v02_tests.py on my machine (likely a false positive, not verified). This PR touches none of them.
  • run_v04fix_tests.py: 1 case fails (cross-package-no-combo), and it fails the same way with vi.json removed, so it seems unrelated. I did not investigate the cause.
  • benign-corpus is skipped locally, so I only checked the 3 ordinary samples above.

Heads-up: lấy ("take/get") is the broadest verb in send. Together with a target word on the same line it may over-flag benign setup docs. Please tell me if it trips on your benign set and I will remove or narrow it.

Update after review (commit 437ed50): removed lấy from send (now 4 verbs: override 4 / send 4 / target 6 / conceal 5) and changed ne-vietnamese-send to use gửi. I re-ran run_v03_tests.py and run_tests.py; both pass. The other suites were run before this change.

Copy link
Copy Markdown
Owner

Thank you for the Vietnamese phrase list and the test cases. We ran the full checks here. The run_v04fix_tests.py failure you mentioned is not from your change — we checked, and that case passes without your file as well.

One small change is needed before we can merge. The verb "lấy" in the send list is a little too broad. On our benign test set it flags one honest skill: a Facebook token guide that says "đổi mật khẩu … cần lấy token mới" (change the password … get a new token). "Lấy" is the normal word for "get" there, so the line reads as send + password when it is only setup help.

Could you remove "lấy" from the send list in vi.json? The other send verbs still cover the bad cases. One test case also needs a small change: "ne-vietnamese-send" uses "lấy", so please change that sentence to use "gửi" instead — we checked that this still flags as expected. Everything else in the PR passed. Thank you again.

@owow2577-pixel

Copy link
Copy Markdown
Contributor Author

I've pushed a new commit (437ed50): I removed "lấy" from the send list in vi.json (it now has 4 verbs), and changed ne-vietnamese-send to use "gửi" instead. I re-ran run_v03_tests.py and run_tests.py locally and both pass.

Pls let me know if there are any further issues. Thanks!

@RakTikoo
RakTikoo merged commit dc9de58 into RakTikoo:main Nov 22, 2026

Copy link
Copy Markdown
Owner

Thank you for the quick fix. We checked the updated version here: the honest skill passes again, and the bad cases still flag as before. Your work is now in the main branch, and this closes #10. Thanks again for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Good first issue: add instruction phrases for a new language (Vietnamese)

2 participants