LLMs Show Language Bias in Code Generation: English Not Always Best
Jul 17, 2026
A new preprint finds that large language models (GPT-4o mini, DeepSeek, Claude) exhibit language bias in code generation. English prompts do not consistently yield the best functional correctness or code quality, and the effect of prompt language varies by programming language and model. The study also observes that generated code often mixes English with the prompt language in comments and strings.
Why it matters: This research highlights the need for multilingual code generation systems to address language bias, as developers may not always get optimal results by defaulting to English prompts.
Full story at: arXiv Software Engineering ↗