ISCAS OpenIR
inferring method specifications from natural language api descriptions
Pandita Rahul; Xiao Xusheng; Zhong Hao; Xie Tao; Oney Stephen; Paradkar Amit
2012
Conference Name34th International Conference on Software Engineering, ICSE 2012
SourceProceedings - International Conference on Software Engineering
Pages815-825
Conference DateJune 2, 2012 - June 9, 2012
Conference PlaceZurich, Switzerland
Indexed TypeEI
ISSN0270-5257
ISBN9781467310673
Department(1) Department of Computer Science North Carolina State University Raleigh NC United States; (2) Laboratory for Internet Software Technologies Institute of Software Chinese Academy of Sciences Beijing China; (3) Human-Computer Interaction Institute Carnegie Mellon University Pittsburgh PA United States; (4) I.B.M. T. J. Watson Research Center Hawthorne NY United States
English AbstractApplication Programming Interface (API) documents are a typical way of describing legal usage of reusable software libraries, thus facilitating software reuse. However, even with such documents, developers often overlook some documents and build software systems that are inconsistent with the legal usage of those libraries. Existing software verification tools require formal specifications (such as code contracts), and therefore cannot directly verify the legal usage described in natural language text in API documents against code using that library. However, in practice, most libraries do not come with formal specifications, thus hindering tool-based verification. To address this issue, we propose a novel approach to infer formal specifications from natural language text of API documents. Our evaluation results show that our approach achieves an average of 92% precision and 93% recall in identifying sentences that describe code contracts from more than 2500 sentences of API documents. Furthermore, our results show that our approach has an average 83% accuracy in inferring specifications from over 1600 sentences describing code contracts. © 2012 IEEE.; Application Programming Interface (API) documents are a typical way of describing legal usage of reusable software libraries, thus facilitating software reuse. However, even with such documents, developers often overlook some documents and build software systems that are inconsistent with the legal usage of those libraries. Existing software verification tools require formal specifications (such as code contracts), and therefore cannot directly verify the legal usage described in natural language text in API documents against code using that library. However, in practice, most libraries do not come with formal specifications, thus hindering tool-based verification. To address this issue, we propose a novel approach to infer formal specifications from natural language text of API documents. Our evaluation results show that our approach achieves an average of 92% precision and 93% recall in identifying sentences that describe code contracts from more than 2500 sentences of API documents. Furthermore, our results show that our approach has an average 83% accuracy in inferring specifications from over 1600 sentences describing code contracts. © 2012 IEEE.
KeywordComputer Software Reusability Software Engineering Specifications
SponsorshipIEEE Computer Society; ACM; University of Zurich (UZH), Department of Informatics; Technical Council on Software Engineering (TCSE); Special Interest Group on Software Engineering (SIGSOFT); SI-SE
Language英语
Content Type会议论文
URIhttp://ir.iscas.ac.cn/handle/311060/15784
Collection中国科学院软件研究所
Recommended Citation
GB/T 7714
Pandita Rahul,Xiao Xusheng,Zhong Hao,et al. inferring method specifications from natural language api descriptions[C],2012:815-825.
Files in This Item:
There are no files associated with this item.
Related Services
Recommend this item
Bookmark
Usage statistics
Export to Endnote
Google Scholar
Similar articles in Google Scholar
[Pandita Rahul]'s Articles
[Xiao Xusheng]'s Articles
[Zhong Hao]'s Articles
Baidu academic
Similar articles in Baidu academic
[Pandita Rahul]'s Articles
[Xiao Xusheng]'s Articles
[Zhong Hao]'s Articles
Bing Scholar
Similar articles in Bing Scholar
[Pandita Rahul]'s Articles
[Xiao Xusheng]'s Articles
[Zhong Hao]'s Articles
Terms of Use
No data!
Social Bookmark/Share
All comments (0)
No comment.
 

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