Improving code readability models with textual features
The DOI matches its Crossref record; 45 of the 46 references it cites were found in a registry or an index, and 1 are not checked yet.
Abstract
Code reading is one of the most frequent activities in software maintenance; before implementing changes, it is necessary to fully understand source code often written by other developers. Thus, readability is a crucial aspect of source code that may significantly influence program comprehension effort. In general, models used to estimate software readability take into account only structural aspects of source code, e.g., line length and a number of comments. However, source code is a particular form of text; therefore, a code readability model should not ignore the textual aspects of source code encapsulated in identifiers and comments. In this paper, we propose a set of textual features aimed at measuring code readability. We evaluated the proposed textual features on 600 code snippets manually evaluated (in terms of readability) by 5K+ people. The results demonstrate that the proposed features complement classic structural features when predicting code readability judgments. Consequently, a code readability model based on a richer set of features, including the ones proposed in this paper, achieves a significantly higher accuracy as compared to all of the state-of-the-art readability models.
Overview
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Prior works categorize code features into three dimensions: code naming [64], code format [55], and implementation details [13].”
From What Makes In-Context Examples Effective for Code Generation? (2026) · cites this paper as [64]
In the citing paper
“Prior works indicated that identifier names may largely affect code comprehension for both humans and LLMs [8, 64].”
From What Makes In-Context Examples Effective for Code Generation? (2026) · cites this paper as [64]
In the citing paper
“we refer to prior works focusing on code readability, which propose clear definitions regarding factors contained in code snippets [7, 55, 64], systematically categorize code features into three fundamental dimensions (semantics, format, and implementation details) based on established literature [9, 10, 16, 29, 82], and design mutation operators that comprehensively cover each dimension.”
From What Makes In-Context Examples Effective for Code Generation? (2026) · cites this paper as [64]
Citations
Cites
A Simple Sequentially Rejective Multiple Test Procedure
(1979) · Scandinavian Journal of Statistics · doi:10.2307/4615733 · Cited by 21,526
WordNet: a lexical database for English
Miller, G. A. (1995) · Communications of the ACM · doi:10.1145/219717.219748 · Cited by 14,015 · cited 3×
“For each term in the source code, we measure its number of meanings derived from WordNet [35] .”
MethodInfluentialFlesch, R. (1948) · Journal of Applied Psychology · doi:10.1037/h0057532 · Cited by 5,391 · cited 2×
“Thus, we introduced a feature that calculates the readability of comments (CR) using the Flesch-Kincaid [33] index, commonly used to assess readability of natural language texts.”
MethodCohen, J. (1994) · American Psychologist · doi:10.1037/0003-066x.49.12.997 · Cited by 4,003 · cited 2×
“issue of no statistical significance with large effect size is an artifact of the size of the samples used with the test, which has been reported previously by Cohen [44] and Harlow et al.”
Method5.7 The WORDNET lexical database of English
(2019) · Computer Corpus Lexicography · doi:10.1515/9781474471459-050 · Cited by 1,865
Kleinberg, J. M., & Eva Tardos, D. (2005) · Cited by 1,400
Recovering traceability links between code and documentation
Antoniol, G., Canfora, G., Casazza, G., De Lucia, A., & Merlo, E. (2002) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2002.1041053 · Cited by 967 · cited 1×
“Consequently, identifiers and comments can be used to measure the conceptual cohesion and coupling of classes [18], [19], and to recover traceability links between documentation artifacts (e.g., requirements) and source code (e.g., [20]).”
BackgroundEffect sizes for research: A broad practical approach.
Grissom, R. J., & Kim, J. J. (2005) · Cited by 732
Classifying Software Changes: Clean or Buggy?
Kim, S., Whitehead, & Zhang, Y. (2008) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2007.70773 · Cited by 672 · cited 1×
“We chose accuracy because it is widely used in the literature [46], and in particular for readability metrics [8].”
MethodWhat If There Were No Significance Tests?
(2013) · Psychology Press eBooks · doi:10.4324/9781315827353 · Cited by 667 · cited 1×
“[45]; in fact, the size of the samples used in our tests for each dataset is 10 measurements (note that we performed 10-fold cross validation).”
Background
Research works printed but not linked: 4
- Martin, 2009, Clean Code: A Handbook of Agile Sofware Craftsmanship
- Takang, 1996, The effects of comments and identifier names on program comprehensibility: an experiential study, Journal of Program Languages, 4, 143
- Collins american dictionary
- 2007, Handbook of Parametric and Nonparametric Statistical Procedures
Cited by
Items 101–159 of 159
Khomokhoana, P. J., & Nel, L. (2020) · South African Computer Journal · doi:10.18489/sacj.v32i2.811 · Cited by 1
“Other strategies, such as highlighting or colouring some lines of code or text (Powell et al., 2004), writing comments (Scalabrino et al., 2016), pattern recognition (Fitzgerald et al., 2005) and making drawings or annotations (doodles) (Lister et al., 2004) are often utilised by programmers to…”
BackgroundInfluentialFrom Absolute to Relative Code Comprehensibility PredictionPreprint
Silva, N. D., Kellogg, M., & Chaparro, O. (2025) · arXiv · doi:10.48550/arxiv.2510.03474 · Cited by 3
“Prior studies [17, 26, 69, 87, 98, 99] used code features in binary classifiers to predict code readability.”
Sampaio, I. B., & Sampaio, A. (2024) · International Conference on Code Quality (ICCQ) · doi:10.1109/iccq60895.2024.10576941 · Cited by 2
“The mistake is understandable because the error was made in the primary studies reviewed, In ([55][56]) the authors named incorrectly the measure.”
BackgroundFrom Code Changes to Quality Gains: An Empirical Study in Python ML Systems with PyQu
Almukhtar, M., Ghammam, A., Kessentini, M., & Ming, H. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3773258 · Cited by 2
“Higherunderstandabilityreducescognitiveloadandsupportsknowl-edge sharing and onboarding [77, 79].”
Wang, Y., Xie, C., Zhang, W., & Qiu, X. (2025) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac65507.2025.00157 · Cited by 3
Metric and Tool Support for Instant Feedback of Source Code Readability
Choi, S., Kim, S., Kim, J., & Park, S. (2020) · Tehnicki vjesnik - Technical Gazette · doi:10.17559/tv-20181030091239 · Cited by 2
A Personalized Code Formatter: Detection and Fixing
Karanikiotis, T., Chatzidimitriou, K. C., & Symeonidis, A. L. (2022) · Communications in computer and information science · doi:10.1007/978-3-031-11513-4_8 · Cited by 2
Automated software testing of relational database schemas
Alsharif, A. H. (2020) · White Rose eTheses Online (University of Leeds, The University of Sheffield, University of York) · Cited by 2
Improving Readability of Scratch Programs with Search-based Refactoring
Adler, F., Fraser, G., Gründinger, E., Körber, N., Labrenz, S., Lerchenberger, J., Lukasczyk, S., & Schweikl, S. (2021) · doi:10.26226/morressier.613b54401459512fce6a7cd5 · Cited by 2
Improving Readability of Scratch Programs with Search-based RefactoringPreprint
Adler, F., Fraser, G., Gründinger, E., Körber, N., Labrenz, S., Lerchenberger, J., Lukasczyk, S., & Schweikl, S. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2108.07114 · Cited by 2
“many other attributes of code that affect comprehension, such as variable names or other textual features [29], a viable initial step towards automatically improving readability therefore lies in considering and optimising some metrics representative of size, complexity, and entropy.”
BackgroundThe Repeat Offenders: Characterizing and Predicting Extremely Bug-Prone Source MethodsPreprint
Friesen, E., Morton-Salmon, S., Opu, M. N. I., Islam, S., & Chowdhury, S. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2511.22726 · Cited by 2
Learning Code Transformations Via Neural Machine Translation
Tufano, M. (2019) · W&M Publish (College of William & Mary) · doi:10.21220/s2-1z1j-d577 · Cited by 1
“Readable code is easier to understand and maintain [163].”
BackgroundPredicting Multiclass Java Code Readability: A Comparative Study of Machine Learning Algorithms
Susanto, B., Ferdiana, R., & Adji, T. B. (2025) · International Journal of Advanced Computer Science and Applications · doi:10.14569/ijacsa.2025.01604102 · Cited by 1
“These models were trained on a Java corpus from Scalabrino et al. [13] containing 200 Java function declaration snippets.”
InfluentialTowards Explainable Code Readability Classification With Graph Neural Networks
Mi, Q., Xiao, Z., Zhan, Y., Tao, L., & Zhang, J. (2025) · Journal of Software Evolution and Process · doi:10.1002/smr.70048 · Cited by 1
“The quantitative studies are conducted on the dataset of Scalabrino et al. [43].”
InfluentialCode clone classification based on multi-dimension feature entropy
Hu, B., Zheng, L., Yu, D., Wu, Y., Chen, J., & Hu, T. (2025) · Science of Computer Programming · doi:10.1016/j.scico.2025.103419 · Cited by 1
EGAN: An Effective Code Readability Classification using Ensemble Generative Adversarial Networks
Sharma, S., & Srivastava, S. (2020) · International Conference on Computation, Automation and Knowledge Management (ICCAKM) · doi:10.1109/iccakm46823.2020.9051555 · Cited by 1
Enhancing Code Understandability Through a Heuristic Rules Analysis for Small Software Vendors
Al-omari, D., Jebreen, I., Samhan, A. A. A., Nabot, A., Al–Qerem, A., Salem, A. O. A., & Maghrabi, L. A. (2024) · Studies in systems, decision and control · doi:10.1007/978-3-031-56586-1_4 · Cited by 1
Hanenberg, S., Morzeck, J., & Gruhn, V. (2024) · Empirical Software Engineering · doi:10.1007/s10664-024-10531-y · Cited by 1
“The present experiment looks like a contradiction to the results by Buse and Weimer (2010) as well as Scalabrino et al. (2016, 2018), who constructed readability models using ML techniques.”
A tool for measuring program comprehensibility using readability-driven metrics
Rahman, M. M., Chowdhury, Z., & Rab, R. (2025) · Software Impacts · doi:10.1016/j.simpa.2025.100782 · Cited by 1
Medeiros, J. (2019) · Portuguese National Funding Agency for Science, Research and Technology (RCAAP Project by FCT) · Cited by 1
Investigating the Impact of Vocabulary Difficulty and Code Naturalness on Program ComprehensionPreprint
Lin, B., & Robles, G. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2308.13429 · Cited by 1
“Given these benefits, many studies have been conducted to predict the readability [4]–[7] and understandability [3], [8].”
BackgroundDesigning implementable tools : the importance of easy and fast implementation in the metaverse era
Haavisto, J. (2024) · Theseus (Ammattikorkeakoulujen) · Cited by 1
Paulsson, M. (2025) · DiVA (Linkoping University) · Cited by 1
What Makes In-Context Examples Effective for Code Generation?
Li, D., Chen, S., Cao, J., & Cheung, S.-C. (2026) · Proceedings of the ACM on Software Engineering · doi:10.1145/3832275 · Cited by 3
Towards Understanding Programs by Counting Objects
Tempero, E. D., & Ralph, P. (2018) · Australasian Software Engineering Conference (ASWEC) · doi:10.1109/aswec.2018.00009
“[4], [2]), and code readability [21].”
Investigating Whether Clean Code Helps Developers in Understanding a New Project
Bottema, R. (2019) · Research Repository (Delft University of Technology)
Análise do impacto na compreensão de programas Java com a introdução de expressões lambda
Lucas, W. (2019) · LA Referencia (Red Federada de Repositorios Institucionales de Publicaciones Científicas)
Towards a Naming Quality Model
Meester, S., Bouwmeester, S., Oprescu, A., & Bruntink, M. (2019) · UvA-DARE (University of Amsterdam)
Investigating the Quality Aspects of Crowd-Sourced Developer Forum: A Case Study of Stack Overflow
Mondal, S. (2020) · HARVEST (University of Saskatchewan)
Sitthithanasakul, S., Chinthanet, B., Kula, R. G., Netsiwawichian, N., Leelaprute, P., Manaskasemsak, B., Rungsawang, A., & Matsumoto, K. (2023) · Journal of Information Processing · doi:10.2197/ipsjjip.31.679
An Interactive Tool to Improve Program Readability for Novice Students
Takahashi, K. (2024) · Lecture notes in educational technology · doi:10.1007/978-981-97-3883-0_13
Demystifying and Assessing Code Understandability in Java DecompilationPreprint
Qin, R., Xiong, Y., Lu, Y., & Pan, M. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2409.20343
“Scalabrino et al. [34], [35] combined structural aspects and textual features to devise a model for code readability.”
BackgroundKagawa, R., Matsubara, M., Miyata, R., Matsuzaki, T., Baba, Y., & Yamakata, Y. (2024) · Lecture notes in computer science · doi:10.1007/978-981-96-0865-2_6
Mi, Q. S., Xi, Y., Li, J., Zhao, Y., & Tang, S. (2024) · Proceedings/Proceedings of the ... International Conference on Software Engineering and Knowledge Engineering · doi:10.18293/seke2024-019
Moderately Mighty: To What Extent Can Internal Software Metrics Predict App Popularity at Launch?Preprint
Opu, M. N. I., Mouri, F. I., Kazman, R., Cai, Y., & Chowdhury, S. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2507.02110
“Contrary to prior studies that emphasize code size as the dominant or sole predictor of software quality and performance [26, 33, 41, 81], our results demonstrate that a broader set of code metrics contribute significantly to a model’s predictive performance.”
Bug detective and quality coach: Developers’ mental models of AI-assisted IDE tools
Buono, P., Cerullo, M., Cirillo, S., Desolda, G., Greco, F., Guglielmi, E., Margarella, G., Polese, G., Scalabrino, S., & Tucci, C. (2026) · Computers in Human Behavior Reports · doi:10.1016/j.chbr.2026.101157
Self-citationIntelligent Software Tooling For Improving Software DevelopmentPreprint
Cooper, N. (2023) · arXiv (Cornell University) · doi:10.21220/s2-23n9-zs76
Urbanke, P. (2022) · reposiTUm (TU Wien) · doi:10.34726/hss.2022.103606
Test Code Comprehension: Insights from an Eye Tracker
Sharanya Suresha Konandur, S. (. (2020) · Research Repository (Delft University of Technology)
Test Mocking in Practice: Developer Challenges and the Impact on Software Maintainability
Ahmed, M. (2025) · HARVEST (University of Saskatchewan) · doi:10.13140/rg.2.2.31776.24321
Sentinel : processo para remoção automática de test smells
Pizzini, A., Malucelli, A., & Reinehr, S. (2024) · LA Referencia (Red Federada de Repositorios Institucionales de Publicaciones Científicas)
Bug Detective and Quality Coach: Developers’ Mental Models of AI-Assisted IDE ToolsPreprint
Buono, P., Cerullo, M., Cirillo, S., Desolda, G., Greco, F., Guglielmi, E., Margarella, G., Polese, G., Scalabrino, S., & Tucci, C. (2026) · SSRN Electronic Journal · doi:10.2139/ssrn.6411746
Self-citationSaha, S., Hasan, A. A., Shifat, F. T., & Imran, M. M. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2603.16791
“Prior studies associate structural transformations such as decomposition, improved identifiers, and reduced cyclomatic complexity with lower cognitive load and improved program comprehension [12, 59, 61, 62].”
InfluentialIntegration of Interval Temporal Logic in an Expression Evaluator
Morero-Peyrona, F., Gutiérrez, J., & Mejías-Risoto, M. (2026) · Applied Sciences · doi:10.3390/app16063049
Verifier Warnings Do Not Improve Comprehensibility PredictionPreprint
Silva, N. D., Kellogg, M., & Chaparro, O. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2604.22653
“Numerous studies have proposed machine learning models for predicting comprehensibility [13, 24, 45, 65, 68–70, 82], which is Among the prior studies, Scalabrino et al. [68] present the current state of the art in the area, as they developed several ML models ( e.g. , Random Forests and Support…”
An Empirical Study of Automated Machine Learning Python Libraries Using Source Code Analysis
O’Leary, C., Lynch, C., & Toosi, F. G. (2026) · Applied Computer Systems · doi:10.2478/acss-2026-0009
“The CR of a code snippet S is then computed using FK (17): 𝑝𝑝ℎ𝑝𝑝𝑝𝑝𝑑𝑑𝑑𝑑𝑑𝑑 𝑆𝑆 𝑤𝑤𝑤𝑤𝑝𝑝𝑑𝑑𝑑𝑑 𝑆𝑆 .”
Learning to Navigate (L2N): A Human-Centered Framework for Local Code Search
Leon, S., Zhang, Z., Tadepalli, P. V., & Kuttal, S. K. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-31048-4_21
Revisiting code readability improvement with LLMs: A critical assessment of fine-tuned models
Vitale, A., Guglielmi, E., Piantadosi, V., Mastropaolo, A., Bavota, G., Oliveto, R., & Scalabrino, S. (2026) · Empirical Software Engineering · doi:10.1007/s10664-026-10933-0
“Recognizing the criticality of this issue, prior research has focused on developing models to automatically assess code readability (Buse and Weimer 2008 , 2009; Posnett et al. 2011 ; Dorn 2012 ; Scalabrino et al. 2016 , 2018; Mi et al. 2018).”
Self-citationCan Perplexity Serve as a Cognitive Signal for Code Understandability?Preprint
Rong, X., Esfahani, M. S., Yadavally, A., Peter, R., & Nguyen, T. N. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2608.00624
Learning Developer‐Code Contribution Relationship to Improve Code Readability Assessment
Mi, Q., Wang, Y., & Li, J. (2026) · Journal of Software Evolution and Process · doi:10.1002/smr.70168
The limits and promise of software-metric-based prediction: from method-level bugs to app popularity
Opu, M. N. I. (2026) · Mspace (University of Manitoba)
Crowdsourced documentation and code snippets
Geremia, S. (2020) · Archivio Istituzionale della Ricerca - Università degli Studi del Molise
Comparison of generative artificial intelligence models for code generation
Ključevšek, J. (2025) · University of Maribor digital library (University of Maribor)
A comparative analysis of code readability and expressiveness in Python, C#, and JavaScript
Korošec, M. (2026) · University of Maribor digital library (University of Maribor)
Medeiros, J. (2019) · Portuguese National Funding Agency for Science, Research and Technology (RCAAP Project by FCT)
Code readability assessment and improvement: human and automated perspectives
Dantas, C. E., & Maia, M. D. A. (2026) · doi:10.5753/cbsoft_estendido.2026.29700
Automating Issue Report Labeling and Source Code Comment Generation using Large Language Models
Johnston, L. (2026) · QSpace (Queen's University Library)
Does the Introduction of Lambda Expressions Improve the Comprehension of Java Programs?
Lucas, W., Bonifacio, R., Canedo, E. D., Marcílio, D., & Lima, F. (2019) · Anais do Simpósio Brasileiro de Engenharia de Software (SBES)
Metadata
- Authors
- Scalabrino, S., Linares-Vasquez, M., Poshyvanyk, D., & Oliveto, R.
- Affiliations
- University of Molise (IT)
- William & Mary (US)
- Venue
- 2016 IEEE 24th International Conference on Program Comprehension (ICPC)
- Publisher
- IEEE
- Published
- 2016-05
- Pages
- 1-10
- OpenAlex
- W2463537704
- Semantic Scholar
- 2cfbff01dcdda10fc5743daeaf13eb94fc96e33f
- Cited by
- 114
- References
- 45
- Citations by year
- 2026: 6 · 2025: 7 · 2024: 10 · 2023: 14 · 2022: 15 · 2021: 12 · 2020: 17 · 2019: 15 · 2018: 13 · 2017: 3 · 2016: 2
- FWCI
- 9.34
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- IEEE International Conference on Program Comprehension (ICPC) (publishedVersion)
- Archivio Istituzionale della Ricerca - Università degli Studi del Molise (submittedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Social Sciences › Linguistics and Language › Text Readability and Simplification
- Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
- Keywords
- code readability, text features, readability prediction, program comprehension, software maintenance, identifiers, structural features
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.