English

Mercem: Method Name Recommendation Based on Call Graph Embedding

Software Engineering 2019-07-15 v1 Machine Learning Programming Languages

Abstract

Comprehensibility of source code is strongly affected by identifier names, therefore software developers need to give good (e.g. meaningful but short) names to identifiers. On the other hand, giving a good name is sometimes a difficult and time-consuming task even for experienced developers. To support naming identifiers, several techniques for recommending identifier name candidates have been proposed. These techniques, however, still have challenges on the goodness of suggested candidates and limitations on applicable situations. This paper proposes a new approach to recommending method names by applying graph embedding techniques to the method call graph. The evaluation experiment confirms that the proposed technique can suggest more appropriate method name candidates in difficult situations than the state of the art approach.

Keywords

Cite

@article{arxiv.1907.05690,
  title  = {Mercem: Method Name Recommendation Based on Call Graph Embedding},
  author = {Hiroshi Yonai and Yasuhiro Hayase and Hiroyuki Kitagawa},
  journal= {arXiv preprint arXiv:1907.05690},
  year   = {2019}
}

Comments

9 pages, 9 figures, 2 tables

R2 v1 2026-06-23T10:19:29.935Z