From API to NLI: A New Interface for Library Reuse
Qi Shen, Shijun Wu, Yanzhen Zou, Zixiao Zhu, Bing Xie

TL;DR
This paper introduces NLI2Code, a framework that simplifies library reuse by generating natural language interfaces to help users understand and implement library functionalities more efficiently.
Contribution
The paper presents a novel framework that automatically generates natural language interfaces for library functions, improving ease of reuse and reducing coding time.
Findings
High-quality natural language interface generated
Saves half of the coding time for users
Effective for real-world Java programming tasks
Abstract
Developers frequently reuse APIs from existing libraries to implement certain functionality. However, learning APIs is difficult due to their large scale and complexity. In this paper, we design an abstract framework NLI2Code to ease the reuse process. Under the framework, users can reuse library functionalities with a high-level, automatically-generated NLI (Natural Language Interface) instead of the detailed API elements. The framework consists of three components: a functional feature extractor to summarize the frequently-used library functions in natural language form, a code pattern miner to give a code template for each functional feature, and a synthesizer to complete code patterns into well-typed snippets. From the perspective of a user, a reuse task under NLI2Code starts from choosing a functional feature and our framework will guide the user to synthesize the desired solution.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Web Data Mining and Analysis · Advanced Malware Detection Techniques
