arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1311.2702cs.SEcs.AIcs.CLcs.HCcs.LO
收藏

可控自然语言中可验证的Source Code文档

Verifiable Source Code Documentation in Controlled Natural Language

ETH Zurich(苏黎世联邦理工学院);University of Chile(智利大学)

Tobias Kuhn, Alexandre Bergel

摘要:

编写关于软件内部的文档很少被认为是一种有价值的活动。当软件在多开发人员环境中不断发展时,这是非常耗时的,并且产生的文档是脆弱的。不幸的是,传统的编程环境对文档的编写和维护支持不足。由于缺乏软件结构文档,对软件产品的整体质量产生了负面影响,因此后果是严重的。我们表明,使用受控的自然语言与推理机和查询引擎是一种可行的技术,用于验证文档和源代码的一致性和准确性。使用ACE,一个国家的最先进的控制自然语言,我们提出了积极的成果的可理解性和一般的可行性创建和验证文档。作为一个案例研究,我们使用自动文档验证来识别和修复一个重要软件架构中的严重缺陷。此外,用户实验表明,我们的语言是更快,更容易学习和理解比其他形式语言的软件文档。

英文摘要:

Writing documentation about software internals is rarely considered a rewarding activity. It is highly time-consuming and the resulting documentation is fragile when the software is continuously evolving in a multi-developer setting. Unfortunately, traditional programming environments poorly support the writing and maintenance of documentation. Consequences are severe as the lack of documentation on software structure negatively impacts the overall quality of the software product. We show that using a controlled natural language with a reasoner and a query engine is a viable technique for verifying the consistency and accuracy of documentation and source code. Using ACE, a state-of-the-art controlled natural language, we present positive results on the comprehensibility and the general feasibility of creating and verifying documentation. As a case study, we used automatic documentation verification to identify and fix severe flaws in the architecture of a non-trivial piece of software. Moreover, a user experiment shows that our language is faster and easier to learn and understand than other formal languages for software documentation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑