Gendered Prompting and LLM Code Review: How Gender Cues in the Prompt Shape Code Quality and Evaluation
Lynn Janzen, \"Uveys Eroglu, Dorothea Kolossa, Pia Kn\"oferle, Sebastian M\"oller, Vera Schmitt, Veronika Solopova

TL;DR
This study investigates how gendered language in prompts influences code generation and review by LLMs, revealing subtle prompt differences and biases in evaluation that could impact fairness in automated programming tools.
Contribution
It provides a comprehensive analysis of gendered linguistic effects on LLM code tasks through real-world data, controlled experiments, and simulation, highlighting biases in code review.
Findings
Female prompts are more indirect and involved.
No consistent difference in code correctness or quality.
Models tend to approve female-authored code more.
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 controlled 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Engineering Techniques and Practices · Software Testing and Debugging Techniques
