Publication Type
Journal Article
Version
publishedVersion
Publication Date
7-2025
Abstract
Proper naming of methods can make program code easier to understand, and thus enhance software maintainability. Yet, developers may use inconsistent names due to poor communication or a lack of familiarity with conventions within the software development lifecycle. To address this issue, much research effort has been invested into building automatic tools that can check for method name inconsistency and recommend consistent names. However, existing datasets generally do not provide precise details about why a method name was deemed improper and required to be changed. Such information can give useful hints on how to improve the recommendation of adequate method names. Accordingly, we construct a sample method-naming benchmark, ReName4J, by matching name changes with code reviews. We then present an empirical study on how state-of-the-art techniques perform in detecting or recommending consistent and inconsistent method names based on ReName4J. The main purpose of the study is to reveal a different perspective based on reviewed names rather than proposing a complete benchmark. We find that the existing techniques underperform on our review-driven benchmark, both in inconsistent checking and the recommendation. We further identify potential biases in the evaluation of existing techniques, which future research should consider thoroughly.
Keywords
Method Name Recommendation, Consistency Checking, Code Review, Empirical Study
Discipline
Software Engineering
Research Areas
Software and Cyber-Physical Systems
Areas of Excellence
Digital transformation
Publication
ACM Transactions on Software Engineering and Methodology
Volume
34
Issue
6
First Page
1
Last Page
27
ISSN
1049-331X
Identifier
10.1145/3711901
Publisher
Association for Computing Machinery (ACM)
Citation
KIM, Kisub; ZHOU, Xin; KIM, Dongsun; LAWALL, Julia; LIU, Kui; BISSYANDÉ, Tegawendé F.; KLEIN, Jacques; LEE, Jaekwon; and David LO.
How are we detecting inconsistent method names? An empirical study from code review perspective. (2025). ACM Transactions on Software Engineering and Methodology. 34, (6), 1-27.
Available at: https://ink.library.smu.edu.sg/sis_research/10941
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.
Additional URL
https://doi.org/10.1145/3711901