Gendered Prompting and LLM Code Review: How Gender Cues in the Prompt Shape Code Quality and Evaluation

Lynn Janzen, Üveys Eroglu, Dorothea Kolossa, Pia Knoeferle, Sebastian Möller, Vera Schmitt, Veronika Solopova


Abstract
LLMs are increasingly embedded in programming workflows, from code generation to automated code review. Yet, how gendered communication styles interact with LLM-assisted programming and code review remains underexplored. We present a mixed-methods pilot study examining whether gender-related linguistic differences in prompts influence code generation outcomes and code review decisions. Across three complementary studies, we analyze (i) collected real-world coding prompts, (ii) a user study, in which developers solve identical programming tasks with LLM assistance, and (iii) an LLM-based simulated evaluation framework that systematically varies gender-coded prompt styles and reviewer personas. We find that gender-related differences in prompting style are subtle but measurable, with female-authored prompts exhibiting more indirect and involved language, which does not translate into consistent gaps in functional correctness or static code quality. For LLM code review, in contrast, we observe systematic biases: on average, models approve female-authored code more, despite comparable quality. Our experiments show that gender-coded prompt styles influence code length and maintainability. We also observe substantial variation in reviewer behavior across models. Together, these findings suggest that fairness risks in LLM-assisted programming arise less from code generation accuracy than from LLM-based evaluation, particularly as LLMs are increasingly used as automated code reviewers.
Anthology ID:
2026.emnlp-main.1081
Volume:
Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
EMNLP
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
24834–24852
Language:
URL:
https://aclanthology.org/2026.emnlp-main.1081/
DOI:
Bibkey:
Cite (ACL):
Lynn Janzen, Üveys Eroglu, Dorothea Kolossa, Pia Knoeferle, Sebastian Möller, Vera Schmitt, and Veronika Solopova. 2026. Gendered Prompting and LLM Code Review: How Gender Cues in the Prompt Shape Code Quality and Evaluation. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 24834–24852, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Gendered Prompting and LLM Code Review: How Gender Cues in the Prompt Shape Code Quality and Evaluation (Janzen et al., EMNLP 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.emnlp-main.1081.pdf