Lexical similarity between argument and parameter names: An empirical study

Guangjie Li, Hui Liu*, Qiurong Liu, Yuting Wu

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)

Abstract

Identifiers chosen by programmers convey rich semantic information that could be exploited to enhance program analysis for various software engineering tasks, e.g., anomaly detection, argument recommendation, and code completion. However, such information has not yet been fully exploited, and little is known about its properties. In this paper, we carry out an empirical study to investigate the lexical similarity between the actual argument and the formal parameter names in method invocations. By analyzing actual arguments and formal parameters from 127 Java applications and 30 open-source C applications, we observe a number of interesting and valuable findings concerning the distribution of similarity, reasons for dissimilarity, and so on. Such findings have been exploited to facilitate argument-related software engineering tasks, i.e., anomaly detection and code completion.

Original languageEnglish
Article number8488350
Pages (from-to)58461-58481
Number of pages21
JournalIEEE Access
Volume6
DOIs
Publication statusPublished - 2018

Keywords

  • Empirical study
  • argument
  • identifier
  • lexical similarity
  • program analysis
  • static analysis

Fingerprint

Dive into the research topics of 'Lexical similarity between argument and parameter names: An empirical study'. Together they form a unique fingerprint.

Cite this