Publication: Automated Analysis of Commenting Styles and Documentation Practices: A Data-Driven Approach to Software Quality and Maintainability
| dc.contributor.author | Sathyangani, K.A.H.P. | |
| dc.date.accessioned | 2026-02-10T04:54:09Z | |
| dc.date.issued | 2025-12 | |
| dc.description.abstract | Software maintainability is strongly influenced by the quality of code comments, which guide developers in understanding system functionality and behaviour. Poorly written, missing, or ambiguous comments reduce productivity and increase the cost of maintenance. The current study introduces an automated, data-driven approach to evaluating comment quality in Java projects. The proposed solution, implemented as a Java-based tool named Comment Quality Analyser, automatically scans source files, extracts comments, and evaluates them using four quality dimensions: grammatical correctness, readability, understandability, and meaningfulness. The tool integrates LanguageTool for grammatical analysis, the Flesch Reading Ease metric for readability, heuristic rules for understandability, and a Jaccard-similarity-based algorithm for measuring semantic alignment between comments and code identifiers. The results are presented through JSON reports and an interactive HTML dashboard that visualises the quality distribution across files. Real-world validation was conducted using the Apache Commons IO open-source repository, containing over 100 comments. Experimental results indicate that the system provides consistent scoring with an average accuracy of 86 % when compared with manual reviews. The proposed framework contributes to improving software documentation practices and offers a foundation for further research integrating Natural Language Processing (NLP) and Machine Learning (ML) to enhance software maintainability analysis. | |
| dc.identifier.uri | https://rda.sliit.lk/handle/123456789/4583 | |
| dc.language.iso | en | |
| dc.publisher | Sri Lanka Institute of Information Technology | |
| dc.subject | Automated Analysis | |
| dc.subject | Commenting Styles | |
| dc.subject | Documentation Practices | |
| dc.subject | Data-Driven Approach | |
| dc.subject | Software Quality | |
| dc.subject | Maintainability | |
| dc.title | Automated Analysis of Commenting Styles and Documentation Practices: A Data-Driven Approach to Software Quality and Maintainability | |
| dc.type | Thesis | |
| dspace.entity.type | Publication |
Files
Original bundle
1 - 2 of 2
- Name:
- Automated Analysis of Commenting Styles and Documentation Practices 1-12.pdf
- Size:
- 425.62 KB
- Format:
- Adobe Portable Document Format
No Thumbnail Available
- Name:
- Automated Analysis of Commenting Styles and Documentation Practices.pdf
- Size:
- 1.72 MB
- Format:
- Adobe Portable Document Format
License bundle
1 - 1 of 1
No Thumbnail Available
- Name:
- license.txt
- Size:
- 1.69 KB
- Format:
- Item-specific license agreed upon to submission
- Description:
