Analyzing program readability based on WordNet

Yangchao Liu,Xiaobing Sun,Yucong Duan
DOI: https://doi.org/10.1145/2745802.2745837
2015-01-01
Abstract:Comments to describe the intent of the code is crucial to measure the program readability, especially for the methods and their comments in a program. Existing program readability techniques mainly focus on matching method and its comments on whether there is the same content between them. But these techniques cannot accurately analyze polysemy and synonyms in the program. In this paper, we propose an approach to analyze program readability based on WordNet, which is able to expand the range of keyword search and solve the problem of semantic ambiguity. Based on the same semantic query function of WordNet, we match keywords between comments and methods, and analyze the readability of the classes and packages in a program.
What problem does this paper attempt to address?