Navigation auf zora.uzh.ch

Search ZORA

ZORA (Zurich Open Repository and Archive)

How to identify class comment types? A multi-language approach for class comment classification

Rani, Pooja; Panichella, Sebastiano; Leuenberger, Manuel; Di Sorbo, Andrea; Nierstrasz, Oscar (2021). How to identify class comment types? A multi-language approach for class comment classification. Journal of Systems and Software, 181:111047.

Abstract

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 and 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 class comment types, 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 the Python, Java, and Smalltalk programming languages. We believe this work can help in monitoring and assessing the quality and evolution of code comments in different programming languages, and thus support maintenance and evolution tasks.

Additional indexing

Item Type:Journal Article, refereed, original work
Communities & Collections:03 Faculty of Economics > Department of Informatics
Dewey Decimal Classification:000 Computer science, knowledge & systems
Scopus Subject Areas:Physical Sciences > Software
Physical Sciences > Information Systems
Physical Sciences > Hardware and Architecture
Scope:Discipline-based scholarship (basic research)
Language:English
Date:1 November 2021
Deposited On:05 Nov 2024 15:10
Last Modified:29 Apr 2025 01:40
Publisher:Elsevier
ISSN:0164-1212
OA Status:Hybrid
Free access at:Publisher DOI. An embargo period may apply.
Publisher DOI:https://doi.org/10.1016/j.jss.2021.111047
Download PDF  'How to identify class comment types? A multi-language approach for class comment classification'.
Preview
  • Content: Published Version
  • Language: English
  • Licence: Creative Commons: Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)

Metadata Export

Statistics

Citations

Dimensions.ai Metrics
28 citations in Web of Science®
32 citations in Scopus®
Google Scholar™

Altmetrics

Downloads

4 downloads since deposited on 05 Nov 2024
4 downloads since 12 months
Detailed statistics

Authors, Affiliations, Collaborations

Similar Publications