...
首页> 外文期刊>IEICE transactions on information and systems >Method Verb Recommendation Using Association Rule Mining in a Set of Existing Projects
【24h】

Method Verb Recommendation Using Association Rule Mining in a Set of Existing Projects

机译:在一组现有项目中使用关联规则挖掘的方法动词推荐

获取原文
           

摘要

It is well-known that program readability is important for maintenance tasks. Method names are important identifiers for program readability because they are used for understanding the behavior of methods without reading a part of the program. Although developers can create a method name by arbitrarily choosing a verb and objects, the names are expected to represent the behavior consistently. However, it is not easy for developers to choose verbs and objects consistently since each developer may have a different notion of a suitable lexicon for method names. In this paper, we propose a technique to recommend candidate verbs for a method name so that developers can use various verbs consistently. We recommend candidate verbs likely to be used as a part of a method name, using association rules extracted from existing methods. To evaluate our technique, we have extracted rules from 445 open source projects written in Java and confirmed the accuracy of our approach by applying the extracted rules to several open source applications. As a result, we found that 84.9% of the considered methods in four projects are recommended the existing verb. Moreover, we found that 73.2% of the actual renamed methods in six projects are recommended the correct verb.
机译:众所周知,程序的可读性对于维护任务很重要。方法名称是提高程序可读性的重要标识符,因为它们用于了解方法的行为而无需阅读程序的一部分。尽管开发人员可以通过任意选择一个动词和对象来创建方法名称,但是希望该名称能够始终如一地表示行为。但是,开发人员要始终如一地选择动词和宾语并不容易,因为每个开发人员对于方法名称可能会有不同的适用词典的概念。在本文中,我们提出了一种为方法名称推荐候选动词的技术,以便开发人员可以一致地使用各种动词。我们建议使用从现有方法中提取的关联规则,将可能用作方法名称一部分的候选动词。为了评估我们的技术,我们从445个用Java编写的开源项目中提取了规则,并通过将提取的规则应用于几个开源应用程序来证实了我们方法的准确性。结果,我们发现四个项目中84.9%的已考虑方法推荐使用现有动词。此外,我们发现六个项目中73.2%的实际重命名方法被推荐为正确的动词。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号