Please use this identifier to cite or link to this item: https://hdl.handle.net/2440/132220
Citations
Scopus Web of Science® Altmetric
?
?
Type: Conference paper
Title: API method recommendation via explicit matching of functionality verb phrases
Author: Xie, W.
Peng, X.
Liu, M.
Treude, C.
Xing, Z.
Zhang, X.
Zhao, W.
Citation: Proceedings of the 28th ACM Joint Meeting European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE 2020), 2020 / Devanbu, P., Cohen, M., Zimmermann, T. (ed./s), pp.1015-1026
Publisher: Association for Computing Machinery
Publisher Place: online
Issue Date: 2020
ISBN: 9781450370431
Conference Name: ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) (8 Nov 2020 - 13 Nov 2020 : virtual online)
Editor: Devanbu, P.
Cohen, M.
Zimmermann, T.
Statement of
Responsibility: 
Wenkai Xie, Xin Peng, Mingwei Liu, Christoph Treude, Zhenchang Xing, Xiaoxin Zhang, Wenyun Zhao
Abstract: Due to the lexical gap between functionality descriptions and user queries, documentation-based API retrieval often produces poor results. Verb phrases and their phrase patterns are essential in both describing API functionalities and interpreting user queries. Thus we hypothesize that API retrieval can be facilitated by explicitly recognizing and matching between the fine-grained structures of functionality descriptions and user queries. To verify this hypothesis, we conducted a large-scale empirical study on the functionality descriptions of 14,733 JDK and Android API methods. We identified 356 different functionality verbs from the descriptions, which were grouped into 87 functionality categories, and we extracted 523 phrase patterns from the verb phrases of the descriptions. Building on these findings, we propose an API method recommendation approach based on explicit matching of functionality verb phrases in functionality descriptions and user queries, called PreMA. Our evaluation shows that PreMA can accurately recognize the functionality categories (92.8%) and phrase patterns (90.4%) of functionality description sentences; and when used for API retrieval tasks, PreMA can help participants complete their tasks more accurately and with fewer retries compared to a baseline approach.
Keywords: API Retrieval; API Documentation; Functionality Description
Rights: © 2020 Association for Computing Machinery.
DOI: 10.1145/3368089.3409731
Published version: https://dl.acm.org/doi/proceedings/10.1145/3368089
Appears in Collections:Computer Science publications

Files in This Item:
There are no files associated with this item.


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.