API recognition and linking in stack overflow

Stack Overflow, one of the most popular programming Q&A forum has become a wealth of information on software engineering. This textual content provides rich and up-to-date learning resources for developers to learn the usage of application programming interface (API). However, it can be insuffic...

Full description

Saved in:
Bibliographic Details
Main Author: Foo, Chee Yong
Other Authors: Xing Zhenchang
Format: Final Year Project
Language:English
Published: 2016
Subjects:
Online Access:http://hdl.handle.net/10356/66634
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
Description
Summary:Stack Overflow, one of the most popular programming Q&A forum has become a wealth of information on software engineering. This textual content provides rich and up-to-date learning resources for developers to learn the usage of application programming interface (API). However, it can be insufficient on its own and developers often need to do further reading on the API documentation. APIs mentioned in natural language texts are rarely fully qualified, so simple matching of the names may be linked to many potential code elements declared by different classes and/or different libraries. In this report, we propose a filter based method of linking API terms in Stack Overflow posts to API documentation by leveraging the context in which an API is mentioned. We also present the implementation of a web application, called LinkAPI, to automatically incorporate online API documentation links into the API terms in Stack Overflow posts. In an evaluation study with three popular Python libraries, we found that our linking technique can resolve most of the ambiguities.