Lune

CHI2022Top-tier venue

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

Ellen Jiang, Edwin Toh, Alejandra Molina, Kristen Olson, Claire Kayacik, Aaron Donsbach, Carrie J. Cai, Michael Terry

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

28 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Grounded Copilot: How Programmers Interact with Code-Generating Models cites Language Models are Few-Shot Learners
  • Do Users Write More Insecure Code with AI Assistants? cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • Repository-Level Prompt Generation for Large Language Models of Code cites Language Models are Few-Shot Learners
  • The Metacognitive Demands and Opportunities of Generative AI cites Grounded Copilot: How Programmers Interact with Code-Generating Models
  • The Metacognitive Demands and Opportunities of Generative AI cites Do Users Write More Insecure Code with AI Assistants?
  • The Metacognitive Demands and Opportunities of Generative AI cites Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming
  • Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory Programming cites Language Models are Few-Shot Learners
  • NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language Queries cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers28

  1. Grounded Copilot: How Programmers Interact with Code-Generating ModelsShraddha Barke, Michael B. James, Nadia PolikarpovaOOPSLA 2023 · 408 citations
  2. Studying the effect of AI Code Generators on Supporting Novice Learners in Introductory ProgrammingMajeed Kazemitabaar, Justin Chow, Carl Ka To Ma, Barbara J. Ericson et al.CHI 2023 · 348 citations
  3. The Metacognitive Demands and Opportunities of Generative AILev Tankelevitch, Viktor Kewenig, Auste Simkute, Ava Elizabeth Scott et al.CHI 2024 · 279 citations
  4. Repository-Level Prompt Generation for Large Language Models of CodeDisha Shrivastava, Hugo Larochelle, Daniel TarlowICML 2023 · 184 citations
  5. Do Users Write More Insecure Code with AI Assistants?Neil Perry, Megha Srivastava, Deepak Kumar, Dan BonehCCS 2023 · 150 citations

Builds on10

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Novice-AI Music Co-Creation via AI-Steering Tools for Deep Generative ModelsRyan Louie, Andy Coenen, Cheng Zhi Huang, Michael Terry et al.CHI 2020 · 265 citations
  3. NL4DV: A Toolkit for Generating Analytic Specifications for Data Visualization from Natural Language QueriesArpit Narechania, Arjun Srinivasan, John T. StaskoIEEE VIS 2020 · 210 citations
  4. Multi-Modal Repairs of Conversational Breakdowns in Task-Oriented DialogsToby Jia-Jun Li, Jingya Chen, Haijun Xia, Tom M. Mitchell et al.UIST 2020 · 98 citations
  5. Multi-modal synthesis of regular expressionsQiaochu Chen, Xinyu Wang, Xi Ye, Greg Durrett et al.PLDI 2020 · 81 citations

Related papers

  1. CoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language ProgrammingLi Feng, Ryan Yen, Yuzhe You, Mingming Fan et al.CHI 2024 · 28 citations
  2. How Beginning Programmers and Code LLMs (Mis)read Each OtherSydney Nguyen, Hannah McLean Babe, Yangtian Zi, Arjun Guha et al.CHI 2024 · 66 citations
  3. Why Johnny Can't Prompt: How Non-AI Experts Try (and Fail) to Design LLM PromptsJ. D. Zamfirescu-Pereira, Richmond Y. Wong, Bjoern Hartmann, Qian YangCHI 2023 · 892 citations
  4. DynEx: Dynamic Code Synthesis with Structured Design Exploration for Accelerated Exploratory ProgrammingJenny Guangzhen Ma, Karthik Sreedhar, Vivian Liu, Pedro Alejandro Perez et al.CHI 2025 · 11 citations
  5. Current and Future Use of Large Language Models for Knowledge WorkMichelle Brachman, Amina H. El-Ashry, Casey Dugan, Werner GeyerCSCW 2025 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines