# NLP2Code: Code Snippet Content Assist via Natural Language Tasks

**Authors:** Brock Angus Campbell, Christoph Treude

arXiv: 1701.05648 · 2017-08-03

## TL;DR

NLP2Code is an integrated source code editor tool that helps developers find relevant code snippets quickly using natural language, reducing context switching and improving productivity.

## Contribution

It introduces NLP2Code, a novel content assist system that directly integrates into code editors to bridge the vocabulary gap for code snippet retrieval.

## Key findings

- Most invocations lead to helpful code snippets
- Supports a wide range of developer tasks
- Users find the tool improves coding efficiency

## Abstract

Developers increasingly take to the Internet for code snippets to integrate into their programs. To save developers the time required to switch from their development environments to a web browser in the quest for a suitable code snippet, we introduce NLP2Code, a content assist for code snippets. Unlike related tools, NLP2Code integrates directly into the source code editor and provides developers with a content assist feature to close the vocabulary gap between developers' needs and code snippet meta data. Our preliminary evaluation of NLP2Code shows that the majority of invocations lead to code snippets rated as helpful by users and that the tool is able to support a wide range of tasks.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1701.05648/full.md

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/1701.05648/full.md

## References

22 references — full list in the complete paper: https://tomesphere.com/paper/1701.05648/full.md

---
Source: https://tomesphere.com/paper/1701.05648