Recommending reference API documentation

被引:0
|
作者
Martin P. Robillard
Yam B. Chhetri
机构
[1] McGill University,School of Computer Science
来源
Empirical Software Engineering | 2015年 / 20卷
关键词
Application programming interfaces; API documentation; Text classification; Natural language processing; Recommendation systems;
D O I
暂无
中图分类号
学科分类号
摘要
Reference documentation is an important source of information on API usage. However, information useful to programmers can be buried in irrelevant text, or attached to a non-intuitive API element, making it difficult to discover. We propose to detect and recommend fragments of API documentation potentially important to a programmer who has already decided to use a certain API element. We categorize text fragments in API documentation based on whether they contain information that is indispensable, valuable, or neither. From the fragments that contain knowledge worthy of recommendation, we extract word patterns, and use these patterns to automatically find new fragments that contain similar knowledge in unseen documentation. We implemented our technique in a tool, Krec, that supports both information filtering and discovery. In an evaluation study with randomly-sampled method definitions from ten open source systems, we found that with a training set derived from about 1000 documentation units, we could issue recommendations with 90 % precision and 69 % recall. In a study involving ten independent assessors, indispensable knowledge items recommended for API types were judged useful 57 % of the time and potentially useful an additional 30 % of the time.
引用
收藏
页码:1558 / 1586
页数:28
相关论文
共 50 条
  • [31] Towards Crowd-Sourced API Documentation
    Uddin, Gias
    Khomh, Foutse
    Roy, Chanchal K.
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2019), 2019, : 310 - 311
  • [32] gDoc: Automatic Generation of Structured API Documentation
    Wang, Shujun
    Tian, Yongqiang
    He, Dengcheng
    COMPANION OF THE WORLD WIDE WEB CONFERENCE, WWW 2023, 2023, : 53 - 56
  • [33] Recommending Posts Concerning API Issues in Developer Q&A Sites
    Wang, Wei
    Malik, Haroon
    Godfrey, Michael W.
    12TH WORKING CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2015), 2015, : 224 - 234
  • [34] Recommending API Function Calls and Code Snippets to Support Software Development
    Nguyen, Phuong T.
    Di Rocco, Juri
    Di Sipio, Claudio
    Di Ruscio, Davide
    Di Penta, Massimiliano
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 48 (07) : 2417 - 2438
  • [35] Reference to the literature and documentation
    Crandall, SJ
    Caelleigh, AS
    Steinecke, A
    ACADEMIC MEDICINE, 2001, 76 (09) : 925 - 927
  • [36] BIBLIOGRAPHY, REFERENCE, AND DOCUMENTATION
    不详
    CHINESE EDUCATION, 1972, 5 (3-4): : 15 - 31
  • [37] Categorizing and Recommending API Usage Patterns based on Degree Centralities and Pattern Distances
    Lee, Shin-Jie
    Su, Wu-Chen
    Huang, Chi-En
    You, Jie-Lin
    2016 INTERNATIONAL COMPUTER SYMPOSIUM (ICS), 2016, : 583 - 588
  • [38] Why API documentation is insufficient for developers: an empirical study
    Fan, Qiang
    Yu, Yue
    Wang, Tao
    Yin, Gang
    Wang, Huaimin
    SCIENCE CHINA-INFORMATION SCIENCES, 2021, 64 (01)
  • [39] Plot2API: Recommending Graphic API from Plot via Semantic Parsing Guided Neural Network
    Wang, Zeyu
    Huang, Sheng
    Liu, Zhongxin
    Yan, Meng
    Xia, Xin
    Wang, Bei
    Yang, Dan
    2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, : 458 - 469
  • [40] Reading the Documentation of Invoked API Functions in Program Comprehension
    Dekel, Uri
    Herbsleb, James D.
    ICPC: 2009 IEEE 17TH INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION, 2009, : 168 - 177