Institutional Repository
| inferring method specifications from natural language api descriptions | |
| Pandita Rahul; Xiao Xusheng; Zhong Hao; Xie Tao; Oney Stephen; Paradkar Amit | |
| 2012 | |
| Conference Name | 34th International Conference on Software Engineering, ICSE 2012 |
| Source | Proceedings - International Conference on Software Engineering |
| Pages | 815-825 |
| Conference Date | June 2, 2012 - June 9, 2012 |
| Conference Place | Zurich, Switzerland |
| Indexed Type | EI |
| ISSN | 0270-5257 |
| ISBN | 9781467310673 |
| 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 Abstract | 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.; 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. |
| Keyword | Computer Software Reusability Software Engineering Specifications |
| Sponsorship | IEEE 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 | 会议论文 |
| URI | http://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. | |||||
Items in the repository are protected by copyright, with all rights reserved, unless otherwise indicated.
Edit Comment