mlsanityData to 13 Oct 2026

A Survey of Automatic Generation of Source Code Comments: Algorithms and Techniques

arXiv 1907.10863 ↗First posted 25 Jul 2019cs.SEcited by 15

Not on the map. Why?

Abstract (arXiv)

As an integral part of source code files, code comments help improve program readability and comprehension. However, developers sometimes do not comment on their program code adequately due to the incurred extra efforts, lack of relevant knowledge, unawareness of the importance of code commenting or some other factors. As a result, code comments can be inadequate, absent or even mismatched with source code, which affects the understanding, reusing and the maintenance of software. To solve these problems of code comments, researchers have been concerned with generating code comments automatically. In this work, we aim at conducting a survey of automatic code commenting researches. First, we generally analyze the challenges and research framework of automatic generation of program comments. Second, we present the classification of representative algorithms, the design principles, strengths and weaknesses of each category of algorithms. Meanwhile, we also provide an overview of the quality assessment of the generated comments. Finally, we summarize some future directions for advancing the techniques of automatic generation of code comments and the quality assessment of comments.

Key facts. Cited by 15 papers in the map (data through 13 Oct 2026). First posted on arXiv 25 Jul 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2021: 1; 2022: 1; 2023: 1; 2024: 6; 2025: 5; 2026: 1.

15 papers.

Sort:

By area: