Show simple item record

dc.contributor.authorXi, Yuan, 1994- 14:57:22 (GMT) 14:57:22 (GMT)
dc.description.abstractApplication Programming Interfaces (APIs) are widely used in today's software development, as they provide a easy and safe way to build more powerful applications with less code. However, learning how to use an API function correctly can sometimes be difficult. Software developers may spend a lot of time to learn a new library before they can become productive. When an unfamiliar API is to be used, they usually have to chase down documentation and code samples to figure out how to use the API correctly. This thesis proposes a new approach based on documentation analysis, helping developers learn to use APIs by recommending likely parameter candidates. Our approach analyzes the documentation information, extracts possible candidates from code context, and gives them as parameter suggestions. To test the effectiveness of our approach, we process the documentation of 5 popular JavaScript libraries, and evaluate the approach on top 1,000 JavaScript projects from GitHub. We used 1,681 instances of API function calls for testing in total. On average, over 60% of the time the correct parameter is in the suggestion set generated by our approach.en
dc.publisherUniversity of Waterlooen
dc.subjectAPI parameter recommendationen
dc.subjectdocumentation analysisen
dc.subjectsoftware engineeringen
dc.subjectcode completionen
dc.subject.lcshApplication program interfaces (Computer software)en
dc.subject.lcshJavaScript (Computer program language)en
dc.subject.lcshSoftware engineeringen
dc.titleAPI Parameter Recommendation Based on Documentation Analysisen
dc.typeMaster Thesisen
dc.pendingfalse R. Cheriton School of Computer Scienceen Scienceen of Waterlooen
uws-etd.degreeMaster of Mathematicsen
uws.contributor.advisorTan, Lin
uws.contributor.advisorGodfrey, Michael
uws.contributor.advisorNagappan, Meiyappan
uws.contributor.affiliation1Faculty of Mathematicsen

Files in this item


This item appears in the following Collection(s)

Show simple item record


University of Waterloo Library
200 University Avenue West
Waterloo, Ontario, Canada N2L 3G1
519 888 4883

All items in UWSpace are protected by copyright, with all rights reserved.

DSpace software

Service outages