arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.04705cs.SE
收藏

软件文档中近似重复的检测

Detecting Near Duplicates in Software Documentation

D. V. Luciv, D. V. Koznov, G. A. Chernishev, A. N. Terekhov

摘要:

现代软件文档和软件本身一样复杂。在其生命周期中,文档积累了大量近似重复的片段,即从单个源复制并随后以不同方式修改的文本块。这种近乎重复的做法降低了文件质量,从而妨碍了文件的进一步利用。同时,由于它们的模糊性,它们很难手动检测。本文给出了近似重复的形式化定义,并提出了一种在软件文档中检测近似重复的算法。该算法是基于精确的软件克隆检测方法:软件克隆检测工具克隆矿工是适合检测准确重复的文件。然后,我们的算法使用这些确切的重复来构建附近的。我们使用19个开源和商业项目的文档来评估所提出的算法。我们的评估非常全面-它涵盖各种文档类型:设计和需求规范、编程指南和API文档、用户手册。总体而言,评估表明,所有类型的软件文档都包含大量的精确和近似重复。接下来,我们报告对Linux内核文档中检测到的近似重复项进行的手动分析。我们提出了定量和定性的分析结果,证明算法的优点和缺点,并讨论了软件文档中的重复管理的好处。

英文摘要:

Contemporary software documentation is as complicated as the software itself. During its lifecycle, the documentation accumulates a lot of near duplicate fragments, i.e. chunks of text that were copied from a single source and were later modified in different ways. Such near duplicates decrease documentation quality and thus hamper its further utilization. At the same time, they are hard to detect manually due to their fuzzy nature. In this paper we give a formal definition of near duplicates and present an algorithm for their detection in software documents. This algorithm is based on the exact software clone detection approach: the software clone detection tool Clone Miner was adapted to detect exact duplicates in documents. Then, our algorithm uses these exact duplicates to construct near ones. We evaluate the proposed algorithm using the documentation of 19 open source and commercial projects. Our evaluation is very comprehensive - it covers various documentation types: design and requirement specifications, programming guides and API documentation, user manuals. Overall, the evaluation shows that all kinds of software documentation contain a significant number of both exact and near duplicates. Next, we report on the performed manual analysis of the detected near duplicates for the Linux Kernel Documentation. We present both quantative and qualitative results of this analysis, demonstrate algorithm strengths and weaknesses, and discuss the benefits of duplicate management in software documents.

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

↑