Computer Software
Print ISSN : 0289-6540
Naming Bug Detection Using Transformer-Based Method Name Suggestion
Tomoya MINEHISAHirohisa AMANMinoru KAWAHARA
Author information
JOURNAL FREE ACCESS

2022 Volume 39 Issue 4 Pages 4_17-4_23

Details
Abstract

The name of a method is an essential clue to comprehending what the method does. An inconsistency between the method's behavior and its name—especially its first word—is referred to as a “naming bug,” leading to deterioration in the code readability. This paper proposes applying a Transformer-based machine learning model to detect naming bugs in Java methods. The proposed model can evaluate a method name's consistency by suggesting a proper name from the method's body. The empirical study proves the proposed model outperforms the conventional model using Doc2Vec, Word2Vec, and convolutional neural network.

Content from these authors
© 2022, Japan Society for Software Science and Technology
Previous article Next article
feedback
Top