IDEAS home Printed from https://ideas.repec.org/h/spr/prochp/978-3-032-14099-9_46.html

The Impact of the Prompt Language on Code Generation with LLMs: An Experimental Study

In: Recent Advances in Information Systems

Author

Listed:
  • Kai Meier

    (Aalen University)

  • Christian Koot

    (Aalen University)

  • Marc Fernandes

    (Aalen University)

  • Andreas Theissler

    (Aalen University)

Abstract

This study investigates the effect of using different languages in the prompt input for code generation with large language models (LLMs). Python code is generated from German and English prompt inputs using a zero-shot prompting strategy, targeting a comparison of the model performance between the languages and difficulties. Therefore, a bilingual benchmark dataset containing 16 algorithmic tasks was developed, covering domains such as linear algebra, number theory, probability theory, and cryptography. The tasks were semantically aligned and categorized into three levels of difficulty. Six large language models were evaluated across the tasks. Standardized prompts were designed using prompt engineering principles, assigning the models the role of an expert in the topic of Python programming. Score metrics were implemented to assess the individual performance of the models and statistical analyses were conducted using Pearson’s chi-squared and Fisher exact test to evaluate significant associations across language prompts and task difficulty. Each model completed 16 tasks in German and 16 in English, with two independent runs per task, resulting in 64 runs per model. This adds up to 192 test runs per language and 384 runs in total. Results show that most models perform better using English language prompts, with GPT-4o outperforming its competitors, reaching the highest scores in both languages and solving all tasks with the maximum score with English prompting. Association between the models across the difficulties showed significant differences using English prompting, while for German only the easiest difficulty showed significant differences. Association between the language performances only showed significant differences in medium difficulty with Pearson’s chi-squared test ( $$p=0.05$$ p = 0.05 ) and Fisher exact test ( $$p=0.029$$ p = 0.029 ).

Suggested Citation

  • Kai Meier & Christian Koot & Marc Fernandes & Andreas Theissler, 2026. "The Impact of the Prompt Language on Code Generation with LLMs: An Experimental Study," Progress in IS, in: Jorge Marx Gómez & Roopesh Kevin Sungkur & Sameerchand Pudaruth & Jan-Hendrik Witte & Gerrit Schuman (ed.), Recent Advances in Information Systems, pages 695-710, Springer.
  • Handle: RePEc:spr:prochp:978-3-032-14099-9_46
    DOI: 10.1007/978-3-032-14099-9_46
    as

    Download full text from publisher

    To our knowledge, this item is not available for download. To find whether it is available, there are three options:
    1. Check below whether another version of this item is available online.
    2. Check on the provider's web page whether it is in fact available.
    3. Perform a
    for a similarly titled item that would be available.

    More about this item

    Keywords

    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:prochp:978-3-032-14099-9_46. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.