Repository navigation
Add Vietnamese phrase list (closes #10) - #21
Conversation
|
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. |
|
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! |
|
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. |
Closes #10
What changed
Added
skillscan/phrases/vi.json(Vietnamese), same keys asde.json(code,language,cjk,override,send,target,conceal). Counts: override 4 / send 5 / target 6 / conceal 5.cjkisfalse.Added 6 Vietnamese cases to
run_v03_tests.py, next to the existingne-*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.
run_tests.py(15 samples) andrun_v03_tests.py(including the 6 new cases; 16 languages loaded, sovi.jsonis picked up), plus 14 other suites: block60 (neededPYTHONUTF8=1), feat_claims, feat_manifest, fixwave, gapwave, mutation, v04, v05, v05fix, v06, v06fix, v06fix2, v07, v07fix.run_edge,run_feat_exceptions,run_feat_combine,run_feat_pinwatchandrun_securityfail on Windows (os.mkfifo, symlink privilege,socket.AF_UNIX), and Windows Defender quarantinedrun_v02_tests.pyon 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 withvi.jsonremoved, so it seems unrelated. I did not investigate the cause.benign-corpusis skipped locally, so I only checked the 3 ordinary samples above.Heads-up:
lấy("take/get") is the broadest verb insend. 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ấyfromsend(now 4 verbs: override 4 / send 4 / target 6 / conceal 5) and changedne-vietnamese-sendto usegửi. I re-ranrun_v03_tests.pyandrun_tests.py; both pass. The other suites were run before this change.