Comparing Identifier Naming Practices Between Chinese and American Developers
Abstract
Identifiers act as the narrative backbone of software, yet they are rarely analyzed as artifacts of human language. This study investigates whether the linguistic background of a developer--specifically the typological differences between English and Mandarin Chinese--systematically influences naming practices. By combining large-scale mining of GitHub repositories with a targeted cognitive survey, we compare the coding styles of developers from China and the United States. The results provide strong evidence of linguistic transfer: Chinese developers frequently omit morphological markers for plurality and past tense, mirroring the grammatical constraints of their native tongue. Additionally, we identify a distinct divergence in lexical economy, where Chinese developers demonstrate a preference for brevity and abbreviations, while American developers favor more verbose, formal descriptions. These findings suggest that source code is not a linguistically neutral medium but is instead shaped by the distinct "dialects" and cognitive habits of its authors.
Create a lesson
Metadata
- Comments
- 30 pages, 11 figures. Replication data and analysis code available on Zenodo: https://doi.org/10.5281/zenodo.22817275
Related papers
Privacy Signals in Developer Narration
Shared title terminologycs.SESarah Santos, Thomas Norton, Aniket Kesari et al.
Comparing Humans and LLMs in Software Engineering Research
Shared title terminologycs.SEMarc Herrmann, Tolga Çakır, Michael Mircea et al.
An Agent-Based Approach for Automating Behavior-Driven Development
Shared title terminologycs.SELuciano Belo de Alcântara Júnior, Diego Elias Costa, João Eduardo Montandon
AutoSpec: Towards Verifiable Software Development via Automated Theorem Proving
Shared title terminologycs.SEGuchan Li, Hongning Wang
From Domain Knowledge to Composable Reactive Code: LLM-Assisted Development with Scenario-Based Programming
Shared title terminologycs.SEAdiel Ashrov, Tom Yaacov, Guy Katz
Replay-Based Merge for Delta-Based Consistency Management in Multi-Model Development
Shared title terminologycs.SERazieh Dehghani, Arne Lange, Martin Armbruster et al.