Recommending Insightful Comments for Source Code using Crowdsourced Knowledge
Not on the map. Why?
Abstract (arXiv)
Recently, automatic code comment generation is proposed to facilitate program comprehension. Existing code comment generation techniques focus on describing the functionality of the source code. However, there are other aspects such as insights about quality or issues of the code, which are overlooked by earlier approaches. In this paper, we describe a mining approach that recommends insightful comments about the quality, deficiencies or scopes for further improvement of the source code. First, we conduct an exploratory study that motivates crowdsourced knowledge from Stack Overflow discussions as a potential resource for source code comment recommendation. Second, based on the findings from the exploratory study, we propose a heuristic-based technique for mining insightful comments from Stack Overflow Q & A site for source code comment recommendation. Experiments with 292 Stack Overflow code segments and 5,039 discussion comments show that our approach has a promising recall of 85.42%. We also conducted a complementary user study which confirms the accuracy and usefulness of the recommended comments.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). First posted on arXiv 6 Jul 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 0; 2023: 0; 2024: 1; 2025: 1.
4 papers.
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2021BERT-Based Sentiment Analysis: A Software Engineering Perspectivecited by 9
- 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questionscited by 9
- 2024Automated Trustworthiness Oracle Generation for Machine Learning Text Classifierscited by 0
- 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questions20 Feb 2025
- 2024Automated Trustworthiness Oracle Generation for Machine Learning Text Classifiers30 Oct 2024
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021BERT-Based Sentiment Analysis: A Software Engineering Perspective4 Jun 2021