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
On Learning Meaningful Code Changes Via Neural Machine Translation
Tufano, M., Pantiuchina, J., Watson, C., Bavota, G., & Poshyvanyk, D. (2019) · 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE) · doi:10.1109/icse.2019.00021 · Cited by 207
“5) Readability: Readable code is easier to understand and maintain [59].”
BackgroundSelf-citationA comprehensive model for code readability
Scalabrino, S., Linares‐Vásquez, M., Oliveto, R., & Poshyvanyk, D. (2018) · Journal of Software: Evolution and Process · doi:10.1002/smr.1958 · Cited by 110
“With respect to our previous study, 18 we increased the “ search termination ” parameter from 5 to 10, in order to search more deeply in the possible features subsets.”
BackgroundMethodResultInfluentialSelf-citationThe effect of poor source code lexicon and readability on developers' cognitive load
Fakhoury, S., Ma, Y., Arnaoudova, V., & Adesope, O. (2018) · IEEE International Conference on Program Comprehension (ICPC) · doi:10.1145/3196321.3196347 · Cited by 159
“Table 1 lists method level metrics that have been shown to correlate with readability and comprehensibility [7, 20, 25, 30, 33], The '+' symbol indicates that a feature is positively correlated with high readability and comprehensibility of the code, and the '-' symbol indicates the opposite.”
BackgroundAutomatically Assessing Code Understandability
Scalabrino, S., Bavota, G., Vendome, C., Linares‐Vásquez, M., Poshyvanyk, D., & Oliveto, R. (2019) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2019.2901468 · Cited by 126
“Scalabrino et al. [14] define Narrow Meaning Identifiers (NMI), Number of Meanings (NM), Identifiers Terms In Dictionary (ITID) and Textual Coherence (TC) to capture the readability of a code snippet.”
BackgroundMethodInfluentialSelf-citationA Large-Scale Empirical Study on Code-Comment Inconsistencies
Wen, F., Nagy, C., Bavota, G., & Lanza, M. (2019) · 2019 IEEE/ACM 27th International Conference on Program Comprehension (ICPC) · doi:10.1109/icpc.2019.00019 · Cited by 105
“On a similar line of research, Scalabrino et al. [9] used the semantic (textual) consistency between source code and comments to assess code readability, conjecturing that the higher this consistency, the higher the readability of the commented code.”
BackgroundResult
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
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Improving code readability models with textual features. https://app.cochat.ai/papers/10.1109/icpc.2016.7503707
- The paper
- Scalabrino, S., Linares-Vasquez, M., Poshyvanyk, D., & Oliveto, R. (2016). Improving code readability models with textual features. 2016 IEEE 24th International Conference on Program Comprehension (ICPC). https://doi.org/10.1109/icpc.2016.7503707
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.