Repository navigation
Add Swedish phrase list (closes #9) - #20
Merged
Merged
Conversation
KaneKiKen007-1
force-pushed
the
add-swedish-phrase-list
branch
from
November 22, 2026 05:31
55c54bd to
e77bb01
Compare
Owner
|
Thank you for the Swedish phrase list and for adding both samples. We reviewed the wording as part of the merge, and it reads well. Your work is now in the main branch, and this closes #9. Thanks again for your help. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Swedish (
sv) coverage for the non-English instruction-attack check.skillscan/phrases/sv.json— structure copied fromde.json; phrases are Swedish (override 3 / send 4 / target 7 / conceal 3).skillscan/rules.py— theNON_ENGLISH_INSTRUCTIONdocstring listed 14 languages and was missing Italian. Reworked the enumeration to the full set of 16, alphabetically ordered (Arabic, Chinese, French, German, Hindi, Indonesian, Italian, Japanese, Korean, Polish, Portuguese, Russian, Spanish, Swedish, Turkish, Ukrainian). Behaviour is unchanged; this is the human-readable rule description only.samples/caution/sv-instruction(override + send + conceal in one paragraph, expectedCAUTION 1) andsamples/good/sv-ordinary(ordinary Swedish prose, expectedPASS 0, so a new phrase list cannot pass by flagging everything in that language). Both registered inrun_tests.py.Honest disclosure
The Swedish phrases were drafted with AI assistance. I aimed for natural, idiomatic wording rather than literal translation, but I am not a native speaker — if any phrase reads as machine-translated or is not what a Swedish speaker would actually write, please say which and I will revise. The same applies to the two fixture texts.
Tests
run_tests.py— All 17 samples passed (15 existing + 2 new).run_v03_tests.py— all v0.3 cases passed (includes the "at least 14 languages load" assertion; now 16).run_mutation_tests.py— All 17 mutations caught.run_security_tests.pyandrun_edge_tests.pycould not run on Windows (socket.AF_UNIX/os.mkfifounavailable). Platform limitation, no source changes made for it.Closes #9