The Community for Technology Leaders
2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011) (2009)
Auckland, New Zealand
Nov. 16, 2009 to Nov. 20, 2009
ISSN: 1527-1366
ISBN: 978-0-7695-3891-4
pp: 307-318
ABSTRACT
Typically, software libraries provide API documentation, through which developers can learn how to use libraries correctly. However, developers may still write code inconsistent with API documentation and thus introduce bugs, as existing research shows that many developers are reluctant to carefully read API documentation. To find those bugs, researchers have proposed various detection approaches based on known specifications. To mine specifications, many approaches have been proposed, and most of them rely on existing client code. Consequently, these mining approaches would fail to mine specifications when client code is not available. In this paper, we propose an approach, called Doc2Spec, that infers resource specifications from API documentation. For our approach, we implemented a tool and conducted an evaluation on Javadocs of five libraries. The results show that our approach infers various specifications with relatively high precisions, recalls, and F-scores. We further evaluated the usefulness of inferred specifications through detecting bugs in open source projects. The results show that specifications inferred by Doc2Spec are useful to detect real bugs in existing projects.
INDEX TERMS
CITATION
Lu Zhang, Tao Xie, Hao Zhong, Hong Mei, "Inferring Resource Specifications from Natural Language API Documentation", 2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011), vol. 00, no. , pp. 307-318, 2009, doi:10.1109/ASE.2009.94
99 ms
(Ver 3.3 (11022016))