blun-king-cli 9.1.563 → 9.1.565

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/agent-spine-plugin/.claude-plugin/marketplace.json +20 -20
  2. package/agent-spine-plugin/.claude-plugin/plugin.json +14 -14
  3. package/agent-spine-plugin/.codex-plugin/plugin.json +34 -34
  4. package/agent-spine-plugin/.mcp.json +8 -8
  5. package/agent-spine-plugin/CONTRIBUTING.md +52 -0
  6. package/agent-spine-plugin/LICENSE +186 -186
  7. package/agent-spine-plugin/README.md +394 -0
  8. package/agent-spine-plugin/SECURITY.md +47 -0
  9. package/agent-spine-plugin/assets/agentspine-banner.svg +32 -32
  10. package/agent-spine-plugin/bin/agentspine-mcp.js +4 -4
  11. package/agent-spine-plugin/bin/agentspine.js +7 -7
  12. package/agent-spine-plugin/blun.plugin.json +33 -33
  13. package/agent-spine-plugin/hooks/codex.json +47 -47
  14. package/agent-spine-plugin/hooks/hooks.json +106 -106
  15. package/agent-spine-plugin/hooks/version.json +5 -5
  16. package/agent-spine-plugin/package.json +69 -69
  17. package/agent-spine-plugin/scripts/check-hosts.js +199 -199
  18. package/agent-spine-plugin/skill/SKILL.md +76 -76
  19. package/agent-spine-plugin/skills/agent-spine/SKILL.md +85 -85
  20. package/agent-spine-plugin/src/cli.js +1488 -1442
  21. package/agent-spine-plugin/src/hook.js +886 -812
  22. package/agent-spine-plugin/src/index.js +93 -93
  23. package/agent-spine-plugin/src/lib/acceptance.js +333 -333
  24. package/agent-spine-plugin/src/lib/attention.js +755 -755
  25. package/agent-spine-plugin/src/lib/audit.js +351 -342
  26. package/agent-spine-plugin/src/lib/authentication.js +515 -515
  27. package/agent-spine-plugin/src/lib/briefing.js +317 -317
  28. package/agent-spine-plugin/src/lib/catalog.js +167 -167
  29. package/agent-spine-plugin/src/lib/channel-runtime.js +665 -665
  30. package/agent-spine-plugin/src/lib/context.js +154 -154
  31. package/agent-spine-plugin/src/lib/continuity.js +338 -338
  32. package/agent-spine-plugin/src/lib/coordination.js +577 -577
  33. package/agent-spine-plugin/src/lib/documents.js +217 -217
  34. package/agent-spine-plugin/src/lib/feed-transport.js +499 -499
  35. package/agent-spine-plugin/src/lib/filesystem-retry.js +32 -32
  36. package/agent-spine-plugin/src/lib/gateway-runtime.js +1119 -760
  37. package/agent-spine-plugin/src/lib/graph.js +337 -337
  38. package/agent-spine-plugin/src/lib/hook-audit.js +29 -0
  39. package/agent-spine-plugin/src/lib/https-transport.js +392 -392
  40. package/agent-spine-plugin/src/lib/indexed-memory-offline.js +40 -40
  41. package/agent-spine-plugin/src/lib/indexed-memory.js +281 -281
  42. package/agent-spine-plugin/src/lib/learning.js +6923 -6466
  43. package/agent-spine-plugin/src/lib/object-transport.js +206 -206
  44. package/agent-spine-plugin/src/lib/owned-file-lock.js +143 -143
  45. package/agent-spine-plugin/src/lib/paths.js +109 -109
  46. package/agent-spine-plugin/src/lib/peer-transport.js +283 -283
  47. package/agent-spine-plugin/src/lib/persona-runtime.js +581 -581
  48. package/agent-spine-plugin/src/lib/preflight.js +702 -702
  49. package/agent-spine-plugin/src/lib/runtime.js +13 -13
  50. package/agent-spine-plugin/src/lib/selfstarter.js +892 -819
  51. package/agent-spine-plugin/src/lib/sharing.js +969 -969
  52. package/agent-spine-plugin/src/lib/source-roots.js +529 -482
  53. package/agent-spine-plugin/src/lib/sqlite-transport.js +501 -501
  54. package/agent-spine-plugin/src/lib/telegram-adapter.js +119 -119
  55. package/agent-spine-plugin/src/lib/voice-runtime.js +39 -39
  56. package/agent-spine-plugin/src/mcp.js +597 -572
  57. package/agent-spine-plugin/src/version.js +1 -1
  58. package/agent-spine-plugin/src/worker.js +202 -195
  59. package/bin/active-steer-priority-policy.cjs +24 -0
  60. package/bin/launcher-runtime.js +8 -1
  61. package/bin/mnemo-tool-agent-policy.cjs +22 -0
  62. package/bin/thinking-activity-status-policy.cjs +132 -0
  63. package/bin/thinking-only-guard.cjs +75 -0
  64. package/bin/tool-call-loop-policy.cjs +53 -0
  65. package/bin/turn-thinking-policy.cjs +25 -1
  66. package/blun.mjs +554 -64
  67. package/package.json +4 -1
  68. package/standard-skills/translate-native/LICENSE +21 -21
  69. package/standard-skills/translate-native/references/evaluation-protocol.md +95 -95
  70. package/standard-skills/translate-native/references/native-orthography.md +79 -79
  71. package/standard-skills/translate-native/references/native-translation-standard.md +94 -94
  72. package/standard-skills/translate-native/references/structured-content.md +72 -72
  73. package/standard-skills/translate-native/references/translationese-review.md +77 -77
  74. package/standard-skills/translate-native/scripts/blun_language_guard.py +697 -697
  75. package/standard-skills/translate-native/scripts/check_diacritics.py +353 -353
  76. package/standard-skills/translate-native/scripts/guard_service_client.py +264 -264
  77. package/standard-skills/translate-native/scripts/language_gateway.py +62 -62
  78. package/standard-skills/translate-native/scripts/language_quality.py +377 -377
  79. package/standard-skills/translate-native/scripts/pre_output_guard.py +64 -64
  80. package/standard-skills/translate-native/scripts/translation_guard.py +916 -916
  81. package/standard-tools/language-guard/blun_language_guard.py +697 -697
  82. package/standard-tools/language-guard/check_diacritics.py +353 -353
  83. package/standard-tools/language-guard/guard_service_client.py +264 -264
  84. package/standard-tools/language-guard/language_quality.py +377 -377
  85. package/standard-tools/language-guard/translation_guard.py +916 -916
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.563",
3
+ "version": "9.1.565",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -42,10 +42,13 @@
42
42
  "agent-spine-plugin/assets/",
43
43
  "agent-spine-plugin/bin/",
44
44
  "agent-spine-plugin/blun.plugin.json",
45
+ "agent-spine-plugin/CONTRIBUTING.md",
45
46
  "agent-spine-plugin/hooks/",
46
47
  "agent-spine-plugin/LICENSE",
47
48
  "agent-spine-plugin/package.json",
49
+ "agent-spine-plugin/README.md",
48
50
  "agent-spine-plugin/scripts/check-hosts.js",
51
+ "agent-spine-plugin/SECURITY.md",
49
52
  "agent-spine-plugin/skill/",
50
53
  "agent-spine-plugin/skills/",
51
54
  "agent-spine-plugin/src/",
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Maykbiletti
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maykbiletti
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,95 +1,95 @@
1
- # Native Translation Evaluation Protocol
2
-
3
- ## Release rule
4
-
5
- Release a translation only when it has zero blocking defects and reads naturally for the specified community, audience, register, and medium. Fluency cannot compensate for changed meaning. Fidelity cannot compensate for obvious translationese.
6
-
7
- ## Classify defects
8
-
9
- | Severity | Definition | Examples | Action |
10
- | --- | --- | --- | --- |
11
- | Blocking | Meaning, safety, structure, or identity is damaged | Reversed negation, missing caveat, wrong number, broken placeholder, invented claim, wrong script | Fix before delivery |
12
- | Major | A native editor would rewrite it or the locale/register is materially wrong | Calque, unnatural syntax, grammatical-but-non-native collocation, broken parallelism, unnecessary borrowing, generic AI filler, wrong honorific, inconsistent terminology, regional mismatch | Fix before delivery |
13
- | Minor | Meaning and nativeness survive but polish is imperfect | Slight repetition, optional punctuation refinement | Fix when feasible |
14
-
15
- Do not average blocking defects into a numeric score. One blocking defect fails the translation.
16
-
17
- Grammar is not a release category. A target with zero grammar errors still fails when it contains a major nativeness defect. Use [translationese-review.md](translationese-review.md) for the target-only procedure and worked regression case.
18
-
19
- ## Run a target-only native review
20
-
21
- Temporarily hide the source and judge the target as original writing. Inspect:
22
-
23
- - syntax and information order;
24
- - collocations and idiomatic word choice;
25
- - paragraph flow, cohesion, rhythm, and repetition;
26
- - politeness, honorifics, directness, and social relationship;
27
- - locale, script, punctuation, typography, and medium conventions;
28
- - whether a native writer would choose the same headline, button, instruction, or transition.
29
-
30
- Also inspect whether coordinated items belong to the same grammatical and semantic category, whether source-language technical vocabulary displaced an established native term, and whether polished-sounding AI filler hides a vague relationship.
31
-
32
- Rewrite any passage that is merely understandable but not naturally chosen. Preserve protected tokens while moving them to the grammatically natural position.
33
-
34
- ## Run a source-aware fidelity review
35
-
36
- Compare propositions rather than matching words. Account for every source fact, negation, quantity, entity, relationship, condition, exception, uncertainty marker, time reference, and call to action. Flag:
37
-
38
- - omissions, additions, duplication, or unjustified explanation;
39
- - stronger or weaker certainty, obligation, praise, warning, or promise;
40
- - changed causal relationships, scope, chronology, or ambiguity;
41
- - terminology drift and inconsistent names;
42
- - cultural adaptation that changes factual content.
43
-
44
- Use back-translation only to reveal possible loss or addition. Never use it as proof of native quality.
45
-
46
- ## Use independent review when stakes justify it
47
-
48
- When another agent or qualified reviewer is available, provide only:
49
-
50
- 1. the complete source;
51
- 2. the candidate target;
52
- 3. target language, locale, script, audience, register, and medium;
53
- 4. required glossary and protected tokens;
54
- 5. this defect rubric.
55
-
56
- Ask for a structured defect list with severity, target excerpt, reason, and minimal correction direction. Do not ask the reviewer to replace the whole translation, reveal an expected answer, or praise the draft. Revise centrally so terminology and voice remain coherent.
57
-
58
- Use this release decision contract:
59
-
60
- ```text
61
- status: PASS | FAIL
62
- blocking_defects:
63
- - excerpt: exact target fragment
64
- class: meaning | completeness | precision | integrity | orthography
65
- reason: concise evidence
66
- major_defects:
67
- - excerpt: exact target fragment
68
- class: nativeness | locale | register | terminology | parallelism
69
- reason: concise evidence
70
- ```
71
-
72
- Return `PASS` only when both defect lists are empty. Any blocking or major defect requires revision followed by a complete new native, fidelity, integrity, and orthography review. Never average defects into a passing numeric score.
73
-
74
- For legal, medical, safety-critical, contractual, or public high-impact content, an AI reviewer is an additional check, not a substitute for a qualified native professional.
75
-
76
- ## Route by confidence
77
-
78
- - **High:** Language variety and domain are well supported; all gates pass. Deliver normally.
79
- - **Medium:** One or more usage, locale, or domain choices are uncertain. Verify them with authoritative native sources and rerun the review.
80
- - **Low:** Reliable evidence is unavailable or varieties may be mixed. Do not present the result as assuredly native. State the limitation or request native review.
81
-
82
- Confidence describes evidence, not how fluent the prose appears.
83
-
84
- ## Evaluate long documents
85
-
86
- Create a translation brief before drafting. Record locale, script, audience, address form, voice, tense policy, glossary, names, units, and formatting. Maintain it across sections. After assembly, review the whole document for:
87
-
88
- - terminology and capitalization drift;
89
- - pronoun/reference continuity;
90
- - headings, captions, lists, and cross-references;
91
- - consistent voice, politeness, tense, and narrative distance;
92
- - duplicated or missing content at section boundaries;
93
- - global rhythm and repeated sentence patterns caused by chunking.
94
-
95
- Do not declare a long document finished from section-level checks alone.
1
+ # Native Translation Evaluation Protocol
2
+
3
+ ## Release rule
4
+
5
+ Release a translation only when it has zero blocking defects and reads naturally for the specified community, audience, register, and medium. Fluency cannot compensate for changed meaning. Fidelity cannot compensate for obvious translationese.
6
+
7
+ ## Classify defects
8
+
9
+ | Severity | Definition | Examples | Action |
10
+ | --- | --- | --- | --- |
11
+ | Blocking | Meaning, safety, structure, or identity is damaged | Reversed negation, missing caveat, wrong number, broken placeholder, invented claim, wrong script | Fix before delivery |
12
+ | Major | A native editor would rewrite it or the locale/register is materially wrong | Calque, unnatural syntax, grammatical-but-non-native collocation, broken parallelism, unnecessary borrowing, generic AI filler, wrong honorific, inconsistent terminology, regional mismatch | Fix before delivery |
13
+ | Minor | Meaning and nativeness survive but polish is imperfect | Slight repetition, optional punctuation refinement | Fix when feasible |
14
+
15
+ Do not average blocking defects into a numeric score. One blocking defect fails the translation.
16
+
17
+ Grammar is not a release category. A target with zero grammar errors still fails when it contains a major nativeness defect. Use [translationese-review.md](translationese-review.md) for the target-only procedure and worked regression case.
18
+
19
+ ## Run a target-only native review
20
+
21
+ Temporarily hide the source and judge the target as original writing. Inspect:
22
+
23
+ - syntax and information order;
24
+ - collocations and idiomatic word choice;
25
+ - paragraph flow, cohesion, rhythm, and repetition;
26
+ - politeness, honorifics, directness, and social relationship;
27
+ - locale, script, punctuation, typography, and medium conventions;
28
+ - whether a native writer would choose the same headline, button, instruction, or transition.
29
+
30
+ Also inspect whether coordinated items belong to the same grammatical and semantic category, whether source-language technical vocabulary displaced an established native term, and whether polished-sounding AI filler hides a vague relationship.
31
+
32
+ Rewrite any passage that is merely understandable but not naturally chosen. Preserve protected tokens while moving them to the grammatically natural position.
33
+
34
+ ## Run a source-aware fidelity review
35
+
36
+ Compare propositions rather than matching words. Account for every source fact, negation, quantity, entity, relationship, condition, exception, uncertainty marker, time reference, and call to action. Flag:
37
+
38
+ - omissions, additions, duplication, or unjustified explanation;
39
+ - stronger or weaker certainty, obligation, praise, warning, or promise;
40
+ - changed causal relationships, scope, chronology, or ambiguity;
41
+ - terminology drift and inconsistent names;
42
+ - cultural adaptation that changes factual content.
43
+
44
+ Use back-translation only to reveal possible loss or addition. Never use it as proof of native quality.
45
+
46
+ ## Use independent review when stakes justify it
47
+
48
+ When another agent or qualified reviewer is available, provide only:
49
+
50
+ 1. the complete source;
51
+ 2. the candidate target;
52
+ 3. target language, locale, script, audience, register, and medium;
53
+ 4. required glossary and protected tokens;
54
+ 5. this defect rubric.
55
+
56
+ Ask for a structured defect list with severity, target excerpt, reason, and minimal correction direction. Do not ask the reviewer to replace the whole translation, reveal an expected answer, or praise the draft. Revise centrally so terminology and voice remain coherent.
57
+
58
+ Use this release decision contract:
59
+
60
+ ```text
61
+ status: PASS | FAIL
62
+ blocking_defects:
63
+ - excerpt: exact target fragment
64
+ class: meaning | completeness | precision | integrity | orthography
65
+ reason: concise evidence
66
+ major_defects:
67
+ - excerpt: exact target fragment
68
+ class: nativeness | locale | register | terminology | parallelism
69
+ reason: concise evidence
70
+ ```
71
+
72
+ Return `PASS` only when both defect lists are empty. Any blocking or major defect requires revision followed by a complete new native, fidelity, integrity, and orthography review. Never average defects into a passing numeric score.
73
+
74
+ For legal, medical, safety-critical, contractual, or public high-impact content, an AI reviewer is an additional check, not a substitute for a qualified native professional.
75
+
76
+ ## Route by confidence
77
+
78
+ - **High:** Language variety and domain are well supported; all gates pass. Deliver normally.
79
+ - **Medium:** One or more usage, locale, or domain choices are uncertain. Verify them with authoritative native sources and rerun the review.
80
+ - **Low:** Reliable evidence is unavailable or varieties may be mixed. Do not present the result as assuredly native. State the limitation or request native review.
81
+
82
+ Confidence describes evidence, not how fluent the prose appears.
83
+
84
+ ## Evaluate long documents
85
+
86
+ Create a translation brief before drafting. Record locale, script, audience, address form, voice, tense policy, glossary, names, units, and formatting. Maintain it across sections. After assembly, review the whole document for:
87
+
88
+ - terminology and capitalization drift;
89
+ - pronoun/reference continuity;
90
+ - headings, captions, lists, and cross-references;
91
+ - consistent voice, politeness, tense, and narrative distance;
92
+ - duplicated or missing content at section boundaries;
93
+ - global rhythm and repeated sentence patterns caused by chunking.
94
+
95
+ Do not declare a long document finished from section-level checks alone.
@@ -1,79 +1,79 @@
1
- # Native Orthography Gate
2
-
3
- ## Release rule
4
-
5
- Write every target in its native orthography. Correct spelling, language-specific letters, diacritics, alphabet, script, punctuation, casing, spacing, and Unicode normalization are mandatory parts of translation quality, not optional typography.
6
-
7
- Do not rely on a separate skill to perform this review. Do not release a translation while a confirmed orthographic defect remains.
8
-
9
- ## Mandatory review
10
-
11
- 1. Identify the exact target language, locale, script, and regional standard.
12
- 2. Review every natural-language segment, including headings, buttons, labels, metadata, accessibility text, and mixed-language passages.
13
- 3. Replace ASCII transliterations only when they stand in for native spelling: `schön`, not `schoen`; `förstår`, not `forstar`; `español`, not `espanol`; `čeština`, not `cestina`.
14
- 4. Use the native writing system by default. Do not romanize Greek, Cyrillic, Arabic, Hebrew, Indic, Southeast Asian, or East Asian text unless requested.
15
- 5. Apply locale-specific punctuation and typography, such as Spanish `¿…?` and `¡…!`, French spacing conventions, or Chinese and Japanese punctuation.
16
- 6. Preserve the canonical spelling of names, brands, quotations, and established technical terms. Verify uncertainty instead of inventing a mark.
17
- 7. Normalize newly written UTF-8 content to Unicode NFC. Preserve a different normalization only when a technical format explicitly requires it.
18
- 8. Re-run the full language and fidelity review after any orthographic correction that could change meaning.
19
-
20
- ## Coverage map
21
-
22
- | Language or writing system | Preserve |
23
- | --- | --- |
24
- | German | `ä ö ü Ä Ö Ü ß`; use Swiss `ss` where required |
25
- | Swedish | `å ä ö Å Ä Ö` as separate letters |
26
- | Danish and Norwegian | `æ ø å Æ Ø Å` |
27
- | Icelandic and Faroese | accents and letters such as `ð þ æ ö ø` |
28
- | Spanish | `á é í ó ú ü ñ ¿ ¡` |
29
- | French | accents, diaeresis, cedilla, and conventional ligatures |
30
- | Portuguese | acute and circumflex accents, tildes, grave accents, and cedilla |
31
- | Catalan, Galician, and Basque | native accents, diaeresis, cedilla, middle dot, and `ñ` where applicable |
32
- | Czech and Slovak | every caron, acute, ring, circumflex, diaeresis, and language-specific consonant |
33
- | Polish, Hungarian, Romanian | complete native diacritics; Romanian comma-below `ș ț`, not cedilla variants |
34
- | Turkish and Azerbaijani | dotted and undotted `i`, `ç ğ ö ş ü`, and Azerbaijani `ə` |
35
- | South Slavic Latin scripts | `č ć đ š ž` and the exact requested regional standard |
36
- | Baltic languages | macrons, carons, dots, cedillas, and ogoneks |
37
- | Vietnamese | complete tone and vowel marks, including stacked marks |
38
- | Greek | Greek alphabet with correct tonos and dialytika; no Greeklish by default |
39
- | Cyrillic languages | the exact language alphabet, including letters absent from Russian |
40
- | Arabic-script languages | the correct language-specific letters and punctuation; optional vowel marks only when conventional |
41
- | Hebrew | Hebrew script; preserve or add niqqud only when the task requires it |
42
- | Indic scripts | native letters, vowel signs, conjuncts, nukta, virama, and punctuation |
43
- | Thai, Lao, Khmer, and Myanmar | tone marks, vowel placement, combining marks, and native spacing conventions |
44
- | Chinese | requested Simplified or Traditional characters and locale-appropriate punctuation |
45
- | Japanese | appropriate kanji, kana, prolonged-sound and iteration marks, spacing, and punctuation |
46
- | Korean | Hangul and correct Korean spacing; preserve hanja only when intended |
47
- | Armenian, Georgian, Ethiopic, and other scripts | native alphabet, canonical spelling, and punctuation |
48
-
49
- This map is illustrative, never exhaustive. Apply the same native-orthography rule to every human language and writing system.
50
-
51
- ## Technical exceptions
52
-
53
- Keep exact ASCII or source spelling when modification could break behavior or fidelity:
54
-
55
- - code identifiers, commands, environment variables, API fields, JSON keys, database columns, slugs, URLs, email addresses, paths, hashes, tokens, regular expressions, and protocol values;
56
- - exact quotations, imported data, trademarks, and personal names whose canonical spelling is known;
57
- - systems with a documented encoding limitation;
58
- - explicit requests for transliteration, ASCII folding, search keys, or URL-safe text.
59
-
60
- Technical exceptions never justify ASCII-only prose around protected values.
61
-
62
- ## Limits of automated checks
63
-
64
- The bundled translation guard verifies UTF-8, Unicode NFC, protected tokens, and structure. The bundled diacritics linter flags frequent ASCII substitutions in many Latin-script languages while ignoring common technical spans. Neither can prove that a word contains the correct diacritic, that the requested script was chosen, or that spelling is native. Use deterministic checks as evidence, then complete the language-aware review manually or with a qualified native reviewer.
65
-
66
- ## Verification hierarchy
67
-
68
- When usage, spelling, script, or locale conventions are uncertain, verify in this order:
69
-
70
- 1. the requested language community's academy, language council, government style guide, or other recognized normative body;
71
- 2. the [Unicode Standard](https://unicode.org/reports/tr15/) for normalization and character behavior;
72
- 3. [Unicode CLDR](https://cldr.unicode.org/) for locale identifiers, exemplar characters, punctuation sets, plural rules, number and date conventions, and script variants;
73
- 4. the [W3C Language Enablement Index](https://www.w3.org/International/typography/gap-analysis/language-matrix.html) for writing-system layout and typography;
74
- 5. the [IANA Language Subtag Registry](https://www.iana.org/assignments/language-subtag-registry) for language, region, and script tags;
75
- 6. contemporary native-edited dictionaries and monolingual corpora for usage and collocations.
76
-
77
- Examples of authoritative language sources include Sweden's [Institutet för språk och folkminnen](https://www.isof.se/svenska-spraket/frageladan), the [Real Academia Española](https://www.rae.es/), the Czech Academy's [Czech Language Institute](https://ujc.cas.cz/), the [Institut d'Estudis Catalans](https://www.iec.cat/), and [Euskaltzaindia](https://www.euskaltzaindia.eus/).
78
-
79
- Do not treat a translation engine, parallel corpus, search-result count, ASCII spell-checker, or another model's confidence as a normative source. Use them only to locate questions that still require native evidence.
1
+ # Native Orthography Gate
2
+
3
+ ## Release rule
4
+
5
+ Write every target in its native orthography. Correct spelling, language-specific letters, diacritics, alphabet, script, punctuation, casing, spacing, and Unicode normalization are mandatory parts of translation quality, not optional typography.
6
+
7
+ Do not rely on a separate skill to perform this review. Do not release a translation while a confirmed orthographic defect remains.
8
+
9
+ ## Mandatory review
10
+
11
+ 1. Identify the exact target language, locale, script, and regional standard.
12
+ 2. Review every natural-language segment, including headings, buttons, labels, metadata, accessibility text, and mixed-language passages.
13
+ 3. Replace ASCII transliterations only when they stand in for native spelling: `schön`, not `schoen`; `förstår`, not `forstar`; `español`, not `espanol`; `čeština`, not `cestina`.
14
+ 4. Use the native writing system by default. Do not romanize Greek, Cyrillic, Arabic, Hebrew, Indic, Southeast Asian, or East Asian text unless requested.
15
+ 5. Apply locale-specific punctuation and typography, such as Spanish `¿…?` and `¡…!`, French spacing conventions, or Chinese and Japanese punctuation.
16
+ 6. Preserve the canonical spelling of names, brands, quotations, and established technical terms. Verify uncertainty instead of inventing a mark.
17
+ 7. Normalize newly written UTF-8 content to Unicode NFC. Preserve a different normalization only when a technical format explicitly requires it.
18
+ 8. Re-run the full language and fidelity review after any orthographic correction that could change meaning.
19
+
20
+ ## Coverage map
21
+
22
+ | Language or writing system | Preserve |
23
+ | --- | --- |
24
+ | German | `ä ö ü Ä Ö Ü ß`; use Swiss `ss` where required |
25
+ | Swedish | `å ä ö Å Ä Ö` as separate letters |
26
+ | Danish and Norwegian | `æ ø å Æ Ø Å` |
27
+ | Icelandic and Faroese | accents and letters such as `ð þ æ ö ø` |
28
+ | Spanish | `á é í ó ú ü ñ ¿ ¡` |
29
+ | French | accents, diaeresis, cedilla, and conventional ligatures |
30
+ | Portuguese | acute and circumflex accents, tildes, grave accents, and cedilla |
31
+ | Catalan, Galician, and Basque | native accents, diaeresis, cedilla, middle dot, and `ñ` where applicable |
32
+ | Czech and Slovak | every caron, acute, ring, circumflex, diaeresis, and language-specific consonant |
33
+ | Polish, Hungarian, Romanian | complete native diacritics; Romanian comma-below `ș ț`, not cedilla variants |
34
+ | Turkish and Azerbaijani | dotted and undotted `i`, `ç ğ ö ş ü`, and Azerbaijani `ə` |
35
+ | South Slavic Latin scripts | `č ć đ š ž` and the exact requested regional standard |
36
+ | Baltic languages | macrons, carons, dots, cedillas, and ogoneks |
37
+ | Vietnamese | complete tone and vowel marks, including stacked marks |
38
+ | Greek | Greek alphabet with correct tonos and dialytika; no Greeklish by default |
39
+ | Cyrillic languages | the exact language alphabet, including letters absent from Russian |
40
+ | Arabic-script languages | the correct language-specific letters and punctuation; optional vowel marks only when conventional |
41
+ | Hebrew | Hebrew script; preserve or add niqqud only when the task requires it |
42
+ | Indic scripts | native letters, vowel signs, conjuncts, nukta, virama, and punctuation |
43
+ | Thai, Lao, Khmer, and Myanmar | tone marks, vowel placement, combining marks, and native spacing conventions |
44
+ | Chinese | requested Simplified or Traditional characters and locale-appropriate punctuation |
45
+ | Japanese | appropriate kanji, kana, prolonged-sound and iteration marks, spacing, and punctuation |
46
+ | Korean | Hangul and correct Korean spacing; preserve hanja only when intended |
47
+ | Armenian, Georgian, Ethiopic, and other scripts | native alphabet, canonical spelling, and punctuation |
48
+
49
+ This map is illustrative, never exhaustive. Apply the same native-orthography rule to every human language and writing system.
50
+
51
+ ## Technical exceptions
52
+
53
+ Keep exact ASCII or source spelling when modification could break behavior or fidelity:
54
+
55
+ - code identifiers, commands, environment variables, API fields, JSON keys, database columns, slugs, URLs, email addresses, paths, hashes, tokens, regular expressions, and protocol values;
56
+ - exact quotations, imported data, trademarks, and personal names whose canonical spelling is known;
57
+ - systems with a documented encoding limitation;
58
+ - explicit requests for transliteration, ASCII folding, search keys, or URL-safe text.
59
+
60
+ Technical exceptions never justify ASCII-only prose around protected values.
61
+
62
+ ## Limits of automated checks
63
+
64
+ The bundled translation guard verifies UTF-8, Unicode NFC, protected tokens, and structure. The bundled diacritics linter flags frequent ASCII substitutions in many Latin-script languages while ignoring common technical spans. Neither can prove that a word contains the correct diacritic, that the requested script was chosen, or that spelling is native. Use deterministic checks as evidence, then complete the language-aware review manually or with a qualified native reviewer.
65
+
66
+ ## Verification hierarchy
67
+
68
+ When usage, spelling, script, or locale conventions are uncertain, verify in this order:
69
+
70
+ 1. the requested language community's academy, language council, government style guide, or other recognized normative body;
71
+ 2. the [Unicode Standard](https://unicode.org/reports/tr15/) for normalization and character behavior;
72
+ 3. [Unicode CLDR](https://cldr.unicode.org/) for locale identifiers, exemplar characters, punctuation sets, plural rules, number and date conventions, and script variants;
73
+ 4. the [W3C Language Enablement Index](https://www.w3.org/International/typography/gap-analysis/language-matrix.html) for writing-system layout and typography;
74
+ 5. the [IANA Language Subtag Registry](https://www.iana.org/assignments/language-subtag-registry) for language, region, and script tags;
75
+ 6. contemporary native-edited dictionaries and monolingual corpora for usage and collocations.
76
+
77
+ Examples of authoritative language sources include Sweden's [Institutet för språk och folkminnen](https://www.isof.se/svenska-spraket/frageladan), the [Real Academia Española](https://www.rae.es/), the Czech Academy's [Czech Language Institute](https://ujc.cas.cz/), the [Institut d'Estudis Catalans](https://www.iec.cat/), and [Euskaltzaindia](https://www.euskaltzaindia.eus/).
78
+
79
+ Do not treat a translation engine, parallel corpus, search-result count, ASCII spell-checker, or another model's confidence as a normative source. Use them only to locate questions that still require native evidence.
@@ -1,94 +1,94 @@
1
- # Native Translation Standard
2
-
3
- ## The core distinction
4
-
5
- A correct translation preserves the source meaning. A native translation also follows the target language's own habits of thought and expression. Both are required.
6
-
7
- Do not optimize for visible word correspondence. Optimize for semantic equivalence plus native acceptability. A sentence may need to be split, merged, reordered, made implicit, or made explicit where the target grammar conventionally requires it, provided no source claim changes.
8
-
9
- ## Choose the operating mode
10
-
11
- | Mode | Primary goal | Permitted adaptation |
12
- | --- | --- | --- |
13
- | Faithful native translation | Preserve meaning in fully native language | Syntax, idiom, information order, punctuation |
14
- | Localization | Make content work in a locale or product | Formats, units, conventions, locally expected labels |
15
- | Transcreation | Preserve effect in persuasive or creative work | Imagery, wordplay, slogans, cultural framing—with claims intact |
16
- | Proofreading | Repair target-language text | Grammar, vocabulary, nativeness, consistency |
17
-
18
- Use faithful native translation by default. Do not silently turn translation into copywriting.
19
-
20
- ## Specify language beyond its name
21
-
22
- Represent the target as a bundle:
23
-
24
- - language and BCP 47 tag where known;
25
- - region or speech community;
26
- - script and orthography;
27
- - formal, informal, honorific, technical, literary, or conversational register;
28
- - audience age, expertise, and relationship to the writer;
29
- - medium and space constraints.
30
-
31
- Language labels can hide materially different choices. “Chinese” requires a script and often a region; “Arabic” can mean Modern Standard Arabic or a spoken variety; “Spanish,” “Portuguese,” “French,” “English,” “Catalan,” “Serbian,” and many others have regional standards. Prefer the user's explicit identity and terminology over assumptions.
32
-
33
- ## Preserve semantic force
34
-
35
- Check especially:
36
-
37
- - scope of negation and quantifiers;
38
- - can/may/must/should and their degree of obligation;
39
- - completed, ongoing, habitual, and hypothetical actions;
40
- - evidentiality, confidence, hearsay, and uncertainty;
41
- - inclusive/exclusive pronouns and levels of respect;
42
- - gender, number, animacy, classifiers, and noun classes where relevant;
43
- - relationships between headings, labels, buttons, and surrounding instructions.
44
-
45
- Naturalness never licenses stronger claims, extra benefits, removed caveats, or invented politeness.
46
-
47
- ## Respect the language community
48
-
49
- - Use the script and orthography used by the requested community, including diacritics, combining marks, contextual forms, native punctuation, spacing, and directionality.
50
- - Do not treat Latin transliteration as the default for a non-Latin script.
51
- - Avoid exoticizing minority and Indigenous languages or replacing community terminology with a majority-language label.
52
- - When multiple standards exist, name the selected standard if that choice matters.
53
- - Preserve names according to the person's or organization's established form. Transliterate only according to the target convention or explicit request.
54
-
55
- ## Source hierarchy for verification
56
-
57
- Use evidence in roughly this order, adjusting for the language and domain:
58
-
59
- 1. Native-authored or professionally native-edited material in the same domain and locale.
60
- 2. Language academies, community authorities, government terminology banks, universities, and respected dictionaries or style guides.
61
- 3. Unicode CLDR and BCP 47 resources for locale identifiers, formats, exemplar characters, plurals, and writing-system conventions.
62
- 4. Curated monolingual corpora such as the Leipzig Corpora Collection for collocations and contemporary usage.
63
- 5. Curated evaluation sets such as FLORES+ for cross-language comparison.
64
- 6. Parallel corpora such as OPUS as supporting evidence only.
65
- 7. Uncurated web text or anonymous dataset entries only as weak corroboration.
66
-
67
- A large dataset is not automatically authoritative. It may contain machine translations, subtitles, duplicated text, wrong language tags, domain bias, outdated orthography, or misaligned sentences. Check its dataset card, provenance, license, curation method, date, locale, and intended use.
68
-
69
- Useful starting points:
70
-
71
- - FLORES+: <https://huggingface.co/datasets/openlanguagedata/flores_plus>
72
- - OPUS: <https://opus.nlpl.eu/>
73
- - Leipzig Corpora Collection: <https://cls.corpora.uni-leipzig.de/>
74
- - Unicode CLDR: <https://cldr.unicode.org/>
75
-
76
- Do not download large corpora for a routine translation. Consult only when the wording or language variety needs verification.
77
-
78
- ## Detect translationese
79
-
80
- Revise when any symptom appears:
81
-
82
- - target sentences mirror source length and clause order without linguistic reason;
83
- - dictionary synonyms replace established collocations;
84
- - pronouns are repeated or omitted according to the source rather than target norms;
85
- - politeness, articles, tense, classifiers, particles, or discourse markers feel imported;
86
- - headlines and buttons use sentence grammar instead of the target medium's conventions;
87
- - an idiom is understandable but no native writer would choose it;
88
- - every sentence is grammatical yet the paragraph does not flow natively.
89
-
90
- Use a back-translation only as a diagnostic for missing meaning, never as the final naturalness test.
91
-
92
- ## Handle uncertainty honestly
93
-
94
- For low-resource languages, fluent-looking output can still be wrong. If evidence is thin, separate what is known from what is inferred, avoid mixing neighboring varieties, and request community or professional review for consequential use. Do not call a translation native merely because it is grammatical.
1
+ # Native Translation Standard
2
+
3
+ ## The core distinction
4
+
5
+ A correct translation preserves the source meaning. A native translation also follows the target language's own habits of thought and expression. Both are required.
6
+
7
+ Do not optimize for visible word correspondence. Optimize for semantic equivalence plus native acceptability. A sentence may need to be split, merged, reordered, made implicit, or made explicit where the target grammar conventionally requires it, provided no source claim changes.
8
+
9
+ ## Choose the operating mode
10
+
11
+ | Mode | Primary goal | Permitted adaptation |
12
+ | --- | --- | --- |
13
+ | Faithful native translation | Preserve meaning in fully native language | Syntax, idiom, information order, punctuation |
14
+ | Localization | Make content work in a locale or product | Formats, units, conventions, locally expected labels |
15
+ | Transcreation | Preserve effect in persuasive or creative work | Imagery, wordplay, slogans, cultural framing—with claims intact |
16
+ | Proofreading | Repair target-language text | Grammar, vocabulary, nativeness, consistency |
17
+
18
+ Use faithful native translation by default. Do not silently turn translation into copywriting.
19
+
20
+ ## Specify language beyond its name
21
+
22
+ Represent the target as a bundle:
23
+
24
+ - language and BCP 47 tag where known;
25
+ - region or speech community;
26
+ - script and orthography;
27
+ - formal, informal, honorific, technical, literary, or conversational register;
28
+ - audience age, expertise, and relationship to the writer;
29
+ - medium and space constraints.
30
+
31
+ Language labels can hide materially different choices. “Chinese” requires a script and often a region; “Arabic” can mean Modern Standard Arabic or a spoken variety; “Spanish,” “Portuguese,” “French,” “English,” “Catalan,” “Serbian,” and many others have regional standards. Prefer the user's explicit identity and terminology over assumptions.
32
+
33
+ ## Preserve semantic force
34
+
35
+ Check especially:
36
+
37
+ - scope of negation and quantifiers;
38
+ - can/may/must/should and their degree of obligation;
39
+ - completed, ongoing, habitual, and hypothetical actions;
40
+ - evidentiality, confidence, hearsay, and uncertainty;
41
+ - inclusive/exclusive pronouns and levels of respect;
42
+ - gender, number, animacy, classifiers, and noun classes where relevant;
43
+ - relationships between headings, labels, buttons, and surrounding instructions.
44
+
45
+ Naturalness never licenses stronger claims, extra benefits, removed caveats, or invented politeness.
46
+
47
+ ## Respect the language community
48
+
49
+ - Use the script and orthography used by the requested community, including diacritics, combining marks, contextual forms, native punctuation, spacing, and directionality.
50
+ - Do not treat Latin transliteration as the default for a non-Latin script.
51
+ - Avoid exoticizing minority and Indigenous languages or replacing community terminology with a majority-language label.
52
+ - When multiple standards exist, name the selected standard if that choice matters.
53
+ - Preserve names according to the person's or organization's established form. Transliterate only according to the target convention or explicit request.
54
+
55
+ ## Source hierarchy for verification
56
+
57
+ Use evidence in roughly this order, adjusting for the language and domain:
58
+
59
+ 1. Native-authored or professionally native-edited material in the same domain and locale.
60
+ 2. Language academies, community authorities, government terminology banks, universities, and respected dictionaries or style guides.
61
+ 3. Unicode CLDR and BCP 47 resources for locale identifiers, formats, exemplar characters, plurals, and writing-system conventions.
62
+ 4. Curated monolingual corpora such as the Leipzig Corpora Collection for collocations and contemporary usage.
63
+ 5. Curated evaluation sets such as FLORES+ for cross-language comparison.
64
+ 6. Parallel corpora such as OPUS as supporting evidence only.
65
+ 7. Uncurated web text or anonymous dataset entries only as weak corroboration.
66
+
67
+ A large dataset is not automatically authoritative. It may contain machine translations, subtitles, duplicated text, wrong language tags, domain bias, outdated orthography, or misaligned sentences. Check its dataset card, provenance, license, curation method, date, locale, and intended use.
68
+
69
+ Useful starting points:
70
+
71
+ - FLORES+: <https://huggingface.co/datasets/openlanguagedata/flores_plus>
72
+ - OPUS: <https://opus.nlpl.eu/>
73
+ - Leipzig Corpora Collection: <https://cls.corpora.uni-leipzig.de/>
74
+ - Unicode CLDR: <https://cldr.unicode.org/>
75
+
76
+ Do not download large corpora for a routine translation. Consult only when the wording or language variety needs verification.
77
+
78
+ ## Detect translationese
79
+
80
+ Revise when any symptom appears:
81
+
82
+ - target sentences mirror source length and clause order without linguistic reason;
83
+ - dictionary synonyms replace established collocations;
84
+ - pronouns are repeated or omitted according to the source rather than target norms;
85
+ - politeness, articles, tense, classifiers, particles, or discourse markers feel imported;
86
+ - headlines and buttons use sentence grammar instead of the target medium's conventions;
87
+ - an idiom is understandable but no native writer would choose it;
88
+ - every sentence is grammatical yet the paragraph does not flow natively.
89
+
90
+ Use a back-translation only as a diagnostic for missing meaning, never as the final naturalness test.
91
+
92
+ ## Handle uncertainty honestly
93
+
94
+ For low-resource languages, fluent-looking output can still be wrong. If evidence is thin, separate what is known from what is inferred, avoid mixing neighboring varieties, and request community or professional review for consequential use. Do not call a translation native merely because it is grammatical.