How to Identify Class Comment Types? A Multi-language Approach for Class Comment Classification
Not on the map. Why?
Abstract (arXiv)
Most software maintenance and evolution tasks require developers to understand the source code of their software systems. Software developers usually inspect class comments to gain knowledge about program behavior, regardless of the programming language they are using. Unfortunately, (i) different programming languages present language-specific code commenting notations/guidelines; and (ii) the source code of software projects often lacks comments that adequately describe the class behavior, which complicates program comprehension and evolution activities. To handle these challenges, this paper investigates the different language-specific class commenting practices of three programming languages: Python, Java, and Smalltalk. In particular, we systematically analyze the similarities and differences of the information types found in class comments of projects developed in these languages. We propose an approach that leverages two techniques, namely Natural Language Processing and Text Analysis, to automatically identify various types of information from class comments i.e., the specific types of semantic information found in class comments. To the best of our knowledge, no previous work has provided a comprehensive taxonomy of class comment types for these three programming languages with the help of a common automated approach. Our results confirm that our approach can classify frequent class comment information types with high accuracy for Python, Java, and Smalltalk programming languages. We believe this work can help to monitor and assess the quality and evolution of code comments in different program languages, and thus support maintenance and evolution tasks.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). First posted on arXiv 9 Jul 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 0; 2026: 2.
6 papers.
- 2023STACC: Code Comment Classification using SentenceTransformerscited by 5
- 2024Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Featurescited by 1
- 2023Software Metadata Classification based on Generative Artificial Intelligencecited by 0
- 2024Dopamin: Transformer-based Comment Classifiers through Domain Post-Training and Multi-level Layer Aggregationcited by 0
- 2026High-quality data augmentation for code comment classificationcited by 0
- 2026LoRA-MME: Multi-Model Ensemble of LoRA-Tuned Encoders for Code Comment Classificationcited by 0
- 2026LoRA-MME: Multi-Model Ensemble of LoRA-Tuned Encoders for Code Comment Classification4 Mar 2026
- 2026High-quality data augmentation for code comment classification27 Jan 2026
- 2024Dopamin: Transformer-based Comment Classifiers through Domain Post-Training and Multi-level Layer Aggregation6 Aug 2024
- 2024Enhancing Source Code Classification Effectiveness via Prompt Learning Incorporating Knowledge Features10 Jan 2024
- 2023Software Metadata Classification based on Generative Artificial Intelligence14 Oct 2023
- 2023STACC: Code Comment Classification using SentenceTransformers25 Feb 2023