Detecting Inconsistent Names of Source Code Using NLP
Software developers use refactoring in order to improve quality of source code. Refactoring is a disciplined technique for restructuring an existing body of code without changing its external behavior. For example, ‘Extract method’ is the one of the refactoring approaches to improving readability of the large-scale method by splitting them into several small-scale methods. In refactoring, code smell indicates any symptom in the source code that possibly causes a deeper problem. Although inconsistent names of source code elements as one of the code smells are crucial, it is hardly achieved by going through the whole source code. Furthermore, it generally can be handled by several developers that understand the source code and also is easy to pass without checking because it does not affect software execution.
- 1.Buse, R., Weimer, W.: A Metric for Software Readiability. In: Proceedings of International Symposium on Software Testing and Analysis (ISSTA), Seattle, WA, pp. 121–130 (2008)Google Scholar
- 2.Code Conventions for the Java Programming Language: Why Have Code Conventions, Sunmicro Systems (1999), http://www.oracle.com/technetwork/java/index-135089.html
- 3.Fowler, M.: Refactoring: Improving the Design of Existing Code. Addison-Wesley (1999)Google Scholar
- 5.Posnett, D., Hindle, A., Devanbu, P.: A Simpler Model of Software Readiability. In: Proceedings of International Confernce on Mining Software Repository(MSR), Honolulu, Hawaii, pp. 73–82 (2011)Google Scholar
- 6.The Stanford Parser: A statistical parser, Home page (2012), http://nlp.stanford.edu/software/lex-parser.shtml
- 7.WordNet: A lexical database for English, Home page (2012), http://wordnet.princeton.edu/