Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models

94Citations
Citations of this article
52Readers
Mendeley users who have this article in their library.
Get full text

Abstract

In this paper, we present a natural language code synthesis tool, GenLine, backed by 1) a large generative language model and 2) a set of task-specific prompts that create or change code. To understand the user experience of natural language code synthesis with these new types of models, we conducted a user study in which participants applied GenLine to two programming tasks. Our results indicate that while natural language code synthesis can sometimes provide a magical experience, participants still faced challenges. In particular, participants felt that they needed to learn the model's "syntax,"despite their input being natural language. Participants also struggled to form an accurate mental model of the types of requests the model can reliably translate and developed a set of strategies to debug model input. From these findings, we discuss design implications for future natural language code synthesis tools built using large generative language models.

Cite

CITATION STYLE

APA

Jiang, E., Toh, E., Molina, A., Olson, K., Kayacik, C., Donsbach, A., … Terry, M. (2022). Discovering the Syntax and Strategies of Natural Language Programming with Generative Language Models. In Conference on Human Factors in Computing Systems - Proceedings. Association for Computing Machinery. https://doi.org/10.1145/3491102.3501870

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free