Towards development of an effective AI-based system for relevant comment generation
Tripti Kumari, Ayan Das · 2023
The comments are essential to understand the functionality of the source code. The comments are crucial to enhancing code readability, maintainability, and collaboration among developers. However, writing elaborate comments for codes is sometimes time-consuming and the comments written for codes do not clearly bring out the meaning of the latter. Furthermore, given the availability of AI-based text generators in the form of ChatGPT, developers are using them to automatically generate comments for their programs to save time and effort. However, the quality of the comments generated by these AI-based systems and the ability of these systems to generate comments for complex programs is not well-studied in the literature. In this research work, we wish to explore the efficacy of AI-based systems in generating comments and compare the quality of such synthetically generated comments with human-written comments.