Leveraging Unsupervised Learning to Summarize APIs Discussed in Stack Overflow

11/27/2021
by   AmirHossein Naghshzan, et al.
0

Automated source code summarization is a task that generates summarized information about the purpose, usage, and–or implementation of methods and classes to support understanding of these code entities. Multiple approaches and techniques have been proposed for supervised and unsupervised learning in code summarization, however, they were mostly focused on generating a summary for a piece of code. In addition, very few works have leveraged unofficial documentation. This paper proposes an automatic and novel approach for summarizing Android API methods discussed in Stack Overflow that we consider as unofficial documentation in this research. Our approach takes the API method's name as an input and generates a natural language summary based on Stack Overflow discussions of that API method. We have conducted a survey that involves 16 Android developers to evaluate the quality of our automatically generated summaries and compare them with the official Android documentation. Our results demonstrate that while developers find the official documentation more useful in general, the generated summaries are also competitive, in particular for offering implementation details, and can be used as a complementary source for guiding developers in software development and maintenance tasks.

READ FULL TEXT

page 1

page 4

page 7

page 8

page 9

research
08/12/2022

Towards Code Summarization of APIs Using NLP Techniques

Each programming language comes with official documentation to guide dev...
research
12/14/2018

Supporting software documentation with source code summarization

Source code summarization is a process of generating summaries that desc...
research
08/17/2023

Enhancing API Documentation through BERTopic Modeling and Summarization

As the amount of textual data in various fields, including software deve...
research
12/12/2018

A4: Automatically Assisting Android API Migrations Using Code Examples

The fast-paced evolution of Android APIs has posed a challenging task fo...
research
03/21/2019

Bootstrapping Cookbooks for APIs from Crowd Knowledge on Stack Overflow

Well established libraries typically have API documentation. However, th...
research
09/09/2019

Sindarin: A Versatile Scripting API for the Pharo Debugger

Debugging is one of the most important and time consuming activities in ...
research
02/17/2021

Mining API Usage Scenarios from Stack Overflow

We propose a framework to mine API usage scenarios from Stack Overflow. ...

Please sign up or login with your details

Forgot password? Click here to reset