location: Current position: jianghe >> Scientific Research >> Paper Publications

Recommending APIs for API Related Questions in Stack Overflow

Hits:

Indexed by:期刊论文

Date of Publication:2018-01-01

Journal:IEEE ACCESS

Included Journals:SCIE、EI

Volume:6

Page Number:6205-6219

ISSN No.:2169-3536

Key Words:Application programming interfaces; information retrieval; recommendation system; stack overflow

Abstract:Application programming interface (API)-related questions are increasingly posted and discussed by developers in popular question and answer forums, such as Stack Overflow. However, their extremely long resolution time seriously delays the working schedules of developers. Despite researchers have investigated how to automatically resolve API-related questions by recommending correct APIs for them, there is still much room for additional improvement. In this paper, we propose a novel approach of recommending APIs for API-related questions based on API specifications and historical resolved questions (RASH). Given a new API-related question, RASH recommends APIs for it guided by two central observations. First, the more lexically similar the functional description in an API's specification is to the new question, the more likely that the API can resolve the new question. Second, the APIs that have resolved more historical similar questions can also help to resolve the new question. To verify the effectiveness of RASH, we construct and publish a corpus containing 1234 API-related questions with their correct APIs from Stack Overflow, and conduct extensive experiments over it. The experimental results show that RASH is relatively stable and robust to a different quality of questions. In addition, RASH hits nearly 70% correct APIs and outperforms the state-of-the-art approach by 15.64% when recommending 15 APIs for each question.

Pre One:Automated quality assessment for crowdsourced test reports of mobile applications

Next One:Automated Localization for Unreproducible Builds