Detecting Inconsistent Names of Source Code Using NLP

  • Sungnam Lee
  • Suntae Kim
  • JeongAh Kim
  • Sooyoung Park
Part of the Communications in Computer and Information Science book series (CCIS, volume 352)


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[3]. 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. 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. 2.
    Code Conventions for the Java Programming Language: Why Have Code Conventions, Sunmicro Systems (1999),
  3. 3.
    Fowler, M.: Refactoring: Improving the Design of Existing Code. Addison-Wesley (1999)Google Scholar
  4. 4.
    Levenshtein, V.I.: Binary codes capable of correcting deletions, insertions and reversals. Soviet Physics Doklady 10(8), 707–710 (1966)MathSciNetGoogle Scholar
  5. 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. 6.
    The Stanford Parser: A statistical parser, Home page (2012),
  7. 7.
    WordNet: A lexical database for English, Home page (2012),

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Sungnam Lee
    • 1
  • Suntae Kim
    • 2
  • JeongAh Kim
    • 3
  • Sooyoung Park
    • 4
  1. 1.Defense Acquisition Program AdministrationSeoulSouth Korea
  2. 2.Dept. of Computer EngineeringKangwon National UniversitySam-CheokSouth Korea
  3. 3.Dept. of Computer EducationKwandong UniversitySouth Korea
  4. 4.Dept. of Computer Science & EngineeringSogang UniversitySeoulSouth Korea

Personalised recommendations