Detecting Important Terms in Source Code for Program Comprehension
- Paige Rodeghero, School of Computing, Clemson University, Clemson, South Carolina, United States
- Collin McMillan, Department of Computer Science and Engineering, University of Notre Dame, Notre Dame, Indiana, United States
AbstractSoftware Engineering research has become extremely dependent on terms (words in textual data) extracted from source code. Different techniques have been proposed to extract the most "important'' terms from code. These terms are typically used as input to research prototypes: the quality of the output of these prototypes will depend on the quality of the term extraction technique. At present no consensus exists about which technique predicts the best terms for code comprehension. We perform a literature review, and propose a unified prediction model based on a Naive Bayes algorithm. We evaluate our model in a field study with professional programmers, as well as a standard 10-fold synthetic study. We found our model predicts the top quartile of the most-important terms with approximately 50% precision and recall, outperforming other popular techniques. We found the predictions from our model to help programmers to the same degree as the gold set.
Return to previous page