R202 Write code in English

On by default

Write code in English: its identifiers, its file names and the strings that are part of its interface.

Reason

Code is read by all kinds of tools and by people who do not share one another’s language, and English is the language they share (Art. III).

Verification

Comments in code have a rule of their own (rule 203). Text in another language that the code holds as data or test input (a sample it processes, say) does not count.

Violated when an identifier, a file name or a string that is part of the interface of code is in a language other than English.

Provisions of the constitution it cites

Relations

Parent
R196 Writing
Requires
none
Conflicts with
none

Metadata

ID
202
Revision
2
Kind
rule
Status
trial
Slug
code-in-english
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions, Review review
Original language
English en
Translations
Chinese zh