Discussion: The Chinese Translation of "Constitution" — "宪法", "协作准则", or Something Else?
国际友人们,英语版本在下面。 (International friends, the English version is below.)
大家好!我是PR #4908 的作者。在那次 PR 中,我将 "Constitution" 的中文翻译从“协作准则”改回了“宪法”,因为我个人认为“宪法”更能体现这份文件的基础性和最高权威性。但是,这个改动也引发了一些争议,因为有人担心“宪法”并不是最好的描述,不仅不够贴切,而且在中文语境下可能带有敏感的政治色彩。
我们都无法敲定采取哪个翻译方案。因此,我在此再次发出一个Issue,邀请诸位中文母语者同胞们加入讨论,动动手指在此Issue下留下你们的想法,或许我们能得到一个完美的译名,谢谢你们!
我的个人看法:
我是“宪法”翻译的坚定维护者,理由如下:
- 它准确地传达了这份文件在项目“法律层级”中位于最顶层的权威性和约束力。在英文原文中,Constitution本来就被用于凸显此条约的严肃性与至高性,将治理规则称为“Constitution”而非“Guideline”或“Policy”,是经过深思熟虑的选择。“宪法”和"Constitution"这两者之间并没有严重的语义误差。技术借用“宪法”这个名词,实在没有大碍。
- 更何况CodeWhale的"Constitution"本就是关于层层规定的硬性约束,在使用的过程中具有最高权威和强制力,而非一份柔性的协作建议。从这个角度来讲,“协作准则”显得更柔性、更温和,没有突出"Constitution”“宪法”的那种强制的权威性质。
- 在国内技术社区中,用“宪法”来作为"Constitution"的译名已经是比较常见的做法。在业内,“宪法”已经是最常见的翻译,很多用户也理解其背后的“根本大法”这层含义。百度百科中,已将“Constitutional AI”翻作“宪法性人工智能”,“Claude Constitution”翻作“Claude宪法”。在技术社区CSDN中,“宪法”被用作Consitution的译名已经相当普遍。在新闻材料中,也已经使用过“宪法”这个名字。这足以证明,“宪法”在技术讨论中是被允许作为术语借用而存在的。
- 从普遍翻译的角度来看,“宪法”也是 "Constitution" 最直接、最核心的翻译。《牛津法律大辞典》对 "Constitution" 的解释就是 “法规、章程、宪法” 。而著名的《布莱克法律词典》(Black's Law Dictionary)将其定义为“一个国家的根本法和组织法”,这些定义都证明"Constitution"本身就是“最高法则”的概念。
- 从历史的角度看,“Constitution”传入东亚时也曾有多种译法——日本学者最初译为“建国法”“根本律例”“朝纲”等,后来才参照中国古籍译为“宪法”。“宪法”出自《国语》中“赏善罚奸,国之宪法”,它的本义就与CodeWhale项目中的Constitution意义十分贴合。关于"Constitution"被翻译成“宪法”的现代案例,也早已有之。譬如华为公司就有被称作“公司宪法”的规定。在技术方面,在微软的Microsoft Learn中文版(https://learn.microsoft.com/zh-cn)中,就出现了许多“宪法”作为最高优先级指令的名字。
- 所以无论是语义、适用性、普遍性、标准译名还是历史发展的角度来看,“宪法”都是最完美的命名。我调研身边的许多朋友,有从事IT行业的,有从事翻译行业的,也有其他完全无关行业的。他们之中大多数都接受“宪法”作为"Constitution"的译名。
当然,你们也可能会有不同的意见,欢迎讨论。请看到这个Issue的各位,在此条目下留言。哪怕是简单的“我支持宪法”“我支持协作准则”“我感觉都不行,不如xx”也能帮到我们很多,谢谢!
Hello everyone,
I'm the author of PR #4908. In that PR, I reverted the Chinese translation of "Constitution" from "协作准则" (Collaboration Guidelines) back to "宪法" (Xianfa, meaning "constitution" in the legal sense), because I personally believe that "宪法" better conveys the foundational and supreme authority of this document. However, this change has sparked some debate, as some are concerned that "宪法" may not be the most accurate description—it might not be precise enough, and it could carry politically sensitive connotations in the Chinese context.
None of us have been able to settle on a final translation. That's why I'm opening this issue again to invite all native Chinese speakers to join the discussion. Please take a moment to leave your thoughts below—maybe together we can find a perfect translation. Thank you!
My personal view:
I am a firm supporter of the "宪法" translation, for the following reasons:
-
It accurately conveys the authority and binding force of this document as the top-level rule within the project's "hierarchy of law." In the original English text, "Constitution" was deliberately chosen over "Guideline" or "Policy" to highlight the seriousness and supremacy of this set of rules. There is no significant semantic gap between "宪法" and "Constitution." Adopting "宪法" as a technical metaphor is perfectly acceptable.
-
Moreover, CodeWhale's "Constitution" is explicitly a set of hard constraints layered across various levels, carrying the highest authority and mandatory effect during use—it is not a set of soft, advisory collaboration suggestions. From this perspective, "协作准则" sounds more flexible and moderate, failing to emphasize the mandatory, authoritative nature of a "constitution."
-
In the Chinese tech community, using "宪法" as the translation for "Constitution" is already a common practice. Within the industry, "宪法" is the most widely used term, and many users understand its underlying meaning as the "fundamental law." On Baidu Baike, "Constitutional AI" is translated as "宪法性人工智能," and "Claude Constitution" as "Claude宪法." On technical forums like CSDN, "宪法" is frequently used as the translation of "Constitution." It has also appeared in news articles. All of this shows that "宪法" is permissible as a borrowed technical term in technical discussions.
-
From a general translation standpoint, "宪法" is the most direct and core translation of "Constitution." The Oxford Law Dictionary defines "constitution" as "laws, regulations, or a constitution." The famous Black's Law Dictionary defines it as "the fundamental and organic law of a nation." These definitions all prove that "Constitution" inherently embodies the concept of "supreme law."
-
Historically, when "Constitution" was introduced to East Asia, there were several translation choices—Japanese scholars initially used terms like "建国法" (foundational law), "根本律例" (fundamental statutes), or "朝纲" (court principles), and only later adopted "宪法" by referencing ancient Chinese texts. The term "宪法" originally appears in the Chinese classic Guoyu (Discourses of the States) in the phrase "赏善罚奸,国之宪法" (Rewarding good and punishing evil is the state's constitution), whose original meaning closely aligns with the concept of a "Constitution" in CodeWhale. Modern examples of "Constitution" being translated as "宪法" are also abundant—for instance, Huawei has a set of rules referred to as its "company constitution." In the tech field, Microsoft Learn (https://learn.microsoft.com/zh-cn) has used "宪法" to refer to top-priority directives in several places.
-
Therefore, from the perspectives of semantics, applicability, widespread usage, standard translation, and historical development, "宪法" is the most fitting name. I have also informally surveyed many friends around me—some in IT, some in translation, and others in completely unrelated fields—and most of them accept "宪法" as the translation of "Constitution."
Of course, you may hold different opinions, and you are welcome to discuss them here. If you see this issue, please leave a comment below—even a simple "I support 宪法," "I support 协作准则," or "I don't think either works; how about XX" would be very helpful. Thank you!
Relavant: PR #4908 and Issue #4369
Thanks @SparkofSpike for the report.
This issue is staying open for maintainer triage. CodeWhale gets better because people bring us real edge cases from real machines, providers, regions, and workflows.
If you can add a reproduction, logs, version output, screenshots, or the provider/model involved, that makes it much easier for us to verify and harvest the fix. Maintainers may comment /lgtmi to mark recurring issue reporters as approved so this intake note is skipped next time.
我个人认为“宪法”是一个人类社会法律问题层面的专用词汇,用在这里会显得不合适,虽然你提出别人也这么用,但不代表他们的用户都普遍接受。“协作准则”确实显得语义有点弱。 我建议用“基本准则”,一方面避开专用词汇,另一方面突出它的根本性。
在版本更新后,第一次蹦出“宪法”时很让我摸不到头脑,为了理解这个概念耗费了不少心智。即便理解了“宪法”的描述,但仍然感到突兀和不适,建议更换一个词。
感觉还是宪法更好,好多地方都这样用了。翻译成其他的,就不是constitution这个意思了。就像把红的翻译成苹果色的,这不对。
基本法:
在实际应用中,这个单词的“政治”性低于“宪法/宪章”,“事务”性高于前者。另一方面是情怀。
个人非常不喜欢”宪法“这个说法,别的地方这么用不是我们这样用的理由。”宪法“这个词很不”计算机“,无论是对从业者还是非专业人士,都很令人误解。
英语中,constitution除了宪法,有其他含义,中文语境中,宪法的含义是唯一且明确的,是法律术语,所以在这里借用是不准确的,也显得专业性不够(如果是想达到这个效果,那另说)。这让我想起有人把“惰性求值”说成”懒求值“。除非找不到词汇了,借用应该是最后无奈的选择,若发生了这种情况,或是我们能力不足,或是汉语表达能力不够。
无论是法规或章程(需要加一些合适的修饰),或者最高准则,都是比”宪法“合适的(不一定是最合适)。如果非要用宪法,我认为至少需要加双引号。
前几天我看到官网的中文,law翻译为”法律“(如果没记错的话),也很奇怪,就像牛顿定律大家不会翻译为牛顿法律一样,对于同一个英文单词,我们习惯在不同领域使用不同的翻译。前一段时间关于token的讨论也是类似。
再补充一下,如果codewhale的中文文档想致敬法律领域,大量的使用法律用语来指代常规的计算机术语,那么,我认为,宪法是应该的译法,law翻译为”法律“,所有的翻译都应该保持这样的风格,这样也很有意思。
PS:我之前翻译过计算机类书籍,姑且算是对翻译有过认真的思考。
还有一个事实,大家应该了解,通过类比“法律”(包括“宪法”)来强调程序规则的权威性或原则性,其实反而是对其权威性或原则性的一种弱化。
代码作为约束程序行为的准则,(基本)是绝对的,大家在有生之年很难碰到执行出错。而对于法律,众所周知有个地方叫法院,有个职业叫律师。
更强的一般叫公理、定律或定理。
我认为”Constitution“在项目中叫”章程“或”宪章“,或”基本准则“会比较好。
汉语里”宪法“虽然是基本法,但更多是用来约束其他法律,这和Agent用法可能有出入。
如果类比人类行为,我认为”Constitution“对AI约束更像”道德“而不是”宪法“,毕竟AI有时候并不会遵循它🤡
但我们期望它能绝对遵循。
btw:The Three Laws of Robotics 翻译成机器人三定律,law翻译成定律,而不是法律
补充一些代码层面的事实,也许有助于收敛这个讨论 —— 我在当前 main 上核实过。
主仓库其实已经做过决定,而且用测试锁住了。
crates/tui/src/localization.rs:3641 有一个测试 zh_hans_constitution_copy_uses_charter_term:
for literal_metaphor in ["宪法", "教义", "自由原则", "仓库法则"] {
assert!(
!value.contains(literal_metaphor),
"zh-Hans {key} should use functional terminology instead of {literal_metaphor}: {value}"
);
}
// ...
assert!(setup_intro.contains("宪章"));
也就是说:「宪法」在 zh-Hans 包里是 CI 禁止的,「宪章」是强制要求的。 当前 zh-Hans 的 47 个 constitution 相关键中,「宪章」25 处,「宪法」0 处。
git 里的时间线:
| 日期 | commit | 内容 |
|---|---|---|
| 07-14 | 9f5d881a9 |
fix(i18n): clarify Simplified Chinese collaboration rules |
| 07-27 | eedb04faf / 95da65e13 |
#4908 引入「宪法」 |
| 07-27 | 3e25eee43 |
fix(i18n): restore functional zh-Hans terminology lost in the #4908 merge |
| 07-27 | cf08cb6af |
fix(i18n): call the zh-Hans constitution a charter —— 定为「宪章」并加上上面那个测试 |
维护方的选择是明确的,而且是在 #4908 合并当天就落定的。这一点讨论里似乎还没人提到,先摆出来供大家参考。
另外,目前有两处实际不一致,是可以直接修的:
1. zh-Hant 漏了一处 —— 那个测试只覆盖 zh-Hans:
键: SetupConstitutionFileLoadedUnselected
en: valid constitution.json present; preview or save guided to select it
zh-Hans: 有效 constitution.json 已存在;预览或保存引导式宪章即可选择
zh-Hant: 有效 constitution.json 已存在;預覽或保存引導式憲法即可選取
同一个 zh-Hant 包里另外 4 处用的都是「憲章」,只有这一处是「憲法」。
2. 网站与 TUI 用词不一致 —— web/ 下有 15 处「宪法」:
web/app/[locale]/docs/constitution/page.tsx 7
web/app/[locale]/constitution/page.tsx 6
web/lib/docs-map.ts 1
web/lib/content/getting-started.ts 1
中文用户在 codewhale.net 读到「宪法」,进 TUI 看到「宪章」,很容易以为是两个东西。
我的看法: 我支持「宪章」。它保留了 constitution「根本性文件」的语义,又避开了中文里「宪法」唯一指向国家根本法的专有性;「宪章」本身是成熟的中文词(《联合国宪章》《大宪章》),指向"立约确立的根本规则",不需要借用法律专名。另外从产品角度:这份文件在 Full Access 下仍然生效,「宪章」比「协作准则」更能传达这种约束力。
如果大家认可,我可以提两个 PR 收掉上述两处不一致(补 zh-Hant 那一键、统一网站用词),并把禁用测试扩展到覆盖全部中文包。请维护者示下。
English summary
Some code-level facts that may help settle this — verified on current main.
The repo has already decided, and a test enforces it. zh_hans_constitution_copy_uses_charter_term (crates/tui/src/localization.rs:3641) bans 宪法 / 教义 / 自由原则 / 仓库法则 in the zh-Hans pack and asserts 宪章 is present. zh-Hans currently uses 宪章 in 25 of its 47 constitution-related strings and 宪法 in none.
Timeline: 9f5d881a9 (07-14) moved away from 宪法; #4908 (07-27) reintroduced it; 3e25eee43 (07-27) reverted it the same day ("restore functional zh-Hans terminology lost in the #4908 merge"); cf08cb6af (07-27) settled on 宪章 and added the enforcing test.
Two live inconsistencies:
zh-Hant.jsonSetupConstitutionFileLoadedUnselectedstill says 憲法 (the test only covers zh-Hans); the other 4 occurrences in that pack use 憲章.- The website uses 宪法 in 15 places across 4 files under
web/, contradicting the TUI.
I support 宪章 and am happy to send PRs for both inconsistencies, plus extending the term test to cover every Chinese pack, if maintainers want that.
感谢各位对此议题的热烈讨论!
@Lstarsky0 感谢您的长文评论,但我必须指出一点,就是这个 CI 并非是 #4908 落地的。 #4908 是我发起的PR,我自己对它更清楚。在这个PR发起前,就存在了“宪法”被拒绝的 CI 。我想,这些所有的违禁词大抵都来源于 #4369 。我在提交 #4908 时,为了让 PR 变绿,所以删掉了这个 CI,但后来 Hmbown 把它加回来了。 我个人认为还是“宪法”更好些,毕竟业界内这个翻译方案也是绝对的主流,在这个 issue 的描述里面我也阐述了我的观点,在此就不再赘述了。不过“宪章”也是可以接受的。至少比“准则”好。
Thank you for your long comment, but I must point out that this CI was not landed via #4908. #4908 is a PR I opened myself, so I know it better. Before this PR was opened, there was already a CI that rejected “宪法”. I think all these forbidden words mostly came from #4369. When I submitted #4908, I removed this CI in order to make the PR turn green, but later Hmbown added it back.
Personally, I think “宪法” is better, since this translation choice is absolutely mainstream in the industry, and I already explained my view in the issue description, so I won't repeat it here. However, “宪章” is also acceptable. At least it's better than “准则”.
你说得对,是我把来源搞错了。回去查了一遍:9f5d881a9(07-14,#4369)就已经有那个禁用词循环,当时要求的正向词是「协作准则」;#4908 的 diff 确实把这两行删了;cf08cb6af(07-27)加回循环,把正向词换成「宪章」,并改成现在的测试名。
所以不是「#4908 引入宪法、之后加测试拦住」。不过这么一理,「宪法」是在两个不同的首选词下各被拒过一次。
用词我没有新观点要补。另外那两处不一致(zh-Hant 的 SetupConstitutionFileLoadedUnselected、网站 15 处)跟最后选哪个词无关,定下来了我随时可以提 PR。
@yuchangyuan 感谢评论。我自身也是个翻译者,中文中“宪法”确有“根本法则”的引申义,如“企业宪法”等,用于非政治场景早有先例。在技术领域,指代项目最基础的规则和决策原则,本身也是贴合原文词义的。 另外你说对官网对 law 的翻译有点疑惑,我在此作出自己的理解:依据英文文档和项目代码,CodeWhale 确实有意借用了法律行业的名词。这里的 law 不是物理定律的含义。 另外,政治方面就不必牵扯了。技术讨论而已,不太想看到这个层面的解释。
Thank you for your comment. I am also a translator myself. In Chinese, “宪法” (constitution) does have an extended meaning of "fundamental principles" or "basic rules"—for example, "corporate constitution" (企业宪法) has long been used in non-political contexts. In the technical domain, using it to refer to the most foundational rules and decision-making principles of a project is actually quite faithful to the original meaning of the word. As for your confusion about the translation of "law" on the official website, here is my understanding: based on the English documentation and the project code, CodeWhale does deliberately borrow terminology from the legal field. In this context, "law" does not carry the meaning of a physical law (like Newton's law). Also, I would prefer not to bring politics into this. This is purely a technical discussion, and I would rather not see that layer of interpretation here.
@Lstarsky0 我觉得我们简中用户就管简中用户的事吧,至于繁中翻译,交给港澳台那边的同胞们去修正。我觉得这样可能更“权威”一点,毕竟他们才是繁中区真正的使用者。
I think we Simplified Chinese users should just handle matters related to Simplified Chinese. As for Traditional Chinese translations, we can leave them to our compatriots in Hong Kong, Macau, and Taiwan to revise. I believe that would be more "authoritative," since they are the actual users of Traditional Chinese locales.
这样吧,这个Issue就开放到八月十五号。八月十五号结束后,我会关闭这个 issue 。 看现在的情况,项目所有者 Hmbown 提出的“宪章”翻译已经得到了大部分人的认可。对于那些已经接受了“宪法”翻译的人群,“宪章”也很容易理解成相同的概念。 @Lstarsky0 如果没问题的话,你可以在这个 issue 关闭后直接提交 PR ,修改网站关于“宪法”的内容为“宪章”。到那时,Hmbown 应该也恰好完成了 v0.9.7 的 release,他会有时间去批准你的 PR 的。
Let's do this: keep this issue open until August 15th. After August 15th, I will close it. Given the current situation, the translation "Charter" (宪章) proposed by project owner Hmbown has been accepted by the majority. For those who have already accepted "Constitution" (宪法), "Charter" is also easy to understand as the same concept. @Lstarsky0 If there's no furthur problem, you can submit a PR directly after this issue is closed, changing the website's references from "宪法" to "宪章". By then, Hmbown should have just completed the v0.9.7 release, so he will have time to approve your PR.
收到,那我等 15 号 issue 关了再提。
范围就是网站那 15 处 宪法→宪章(constitution/page.tsx、docs/constitution/page.tsx、docs-map.ts、getting-started.ts),纯文案改动;zh-Hant 按你说的不动,留给繁中区的人。
该 issue 已开放三周,现将其关闭。感谢上面所有参与该讨论的用户!
@Lstarsky0 既然大家都没有异议,我认为你可以提交 PR 了。在 PR 的 DESC 里面,你可以引用这个 issue ,这样 Hmbown 能顺着链接看过来,看到这里的讨论,既能让他自己省事,又能提高你 PR 的通过速度和通过概率。
This issue has been open for three weeks and is now being closed. Thank you to all the users who participated in the discussion above!
@Lstarsky0 Since there are no objections, I think you can go ahead and submit the PR. In the PR description, you can reference this issue so that Hmbown can follow the link and see the discussion here. This will save him effort and also increase the speed and likelihood of your PR being approved.