Automatic API Usage Scenario Documentation from Technical Q&A Sites
Gias Uddin, Foutse Khomh, Chanchal K Roy

TL;DR
This paper introduces two novel algorithms to automatically generate API documentation by combining code examples and developer reviews from Stack Overflow, enhancing API understanding and usage insights.
Contribution
The paper presents two new algorithms, statistical and concept-based, for automatically producing API documentation from Stack Overflow data, integrating code examples and reviews.
Findings
Algorithms effectively extract API usage scenarios.
User studies show improved API comprehension.
Platform deployment demonstrates practical applicability.
Abstract
The online technical Q&A site Stack Overflow (SO) is popular among developers to support their coding and diverse development needs. To address shortcomings in API official documentation resources, several research has thus focused on augmenting official API documentation with insights (e.g., code examples) from SO. The techniques propose to add code examples/insights about APIs into its official documentation. Reviews are opinionated sentences with positive/negative sentiments. However, we are aware of no previous research that attempts to automatically produce API documentation from SO by considering both API code examples and reviews. In this paper, we present two novel algorithms that can be used to automatically produce API documentation from SO by combining code examples and reviews towards those examples. The first algorithm is called statistical documentation, which shows the…
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 · Software Engineering Techniques and Practices · Web Data Mining and Analysis
