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.
- I. Feinerer and K. Hornik. wordnet: WordNet Interface, 2014. R package version 0.1--10.Google Scholar
- J. K. Kearney, R. L. Sedlmeyer, W. B. Thompson, M. A. Gray, and M. A. Adler. Software complexity measurement. Commun. ACM, 29(11): 1044--1050, 1986. Google ScholarDigital Library
- D. Steidl, B. Hummel, and E. Jürgens. Quality analysis of source code comments. In International Conference on Program Comprehension, pages 83--92, 2013.Google ScholarCross Ref
- X. Sun, X. Liu, J. Hu, and J. Zhu. Empirical studies on the nlp techniques for source code data preprocessing. In International Workshop on Evidential Assessment of Software Technologies, pages 32--39, 2014. Google ScholarDigital Library
Index Terms
- Analyzing program readability based on WordNet
Recommendations
Data-driven synset induction and disambiguation for wordnet development
Automatic methods for wordnet development in languages other than English generally exploit information found in Princeton WordNet (PWN) and translations extracted from parallel corpora. A common approach consists in preserving the structure of PWN and ...
Enriching the adjective domain in the Japanese wordnet
IceTAL'10: Proceedings of the 7th international conference on Advances in natural language processingWe released Japanese WordNet Version 1.0 in March 2010, and are continuing to enrich the Japanese WordNet in several directions. The current version of the Japanese WordNet is a kind of translation of Princeton WordNet 3.0 and we used WordNets of ...
Developing the Persian Wordnet of Verbs Using Supervised Learning
Nowadays, wordnets are extensively used as a major resource in natural language processing and information retrieval tasks. Therefore, the accuracy of wordnets has a direct influence on the performance of the involved applications. This paper presents a ...
Comments