CoChat

Improving code readability models with textual features

Scalabrino, Simone, Linares-Vasquez, Mario, Poshyvanyk, Denys, Oliveto, Rocco · 2016 · 2016 IEEE 24th International Conference on Program Comprehension (ICPC)

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

Crossref · 10.1109/icpc.2016.7503707

Cites

45 of 46 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Verification

Claims the paper makes

This paper’s full text isn’t openly available, so its claims and self-check weren’t run. The registry and citation checks still apply.

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?

Citations

Cites

Show all 46 references

Research works printed but not linked: 4

  1. Martin, 2009, Clean Code: A Handbook of Agile Sofware Craftsmanship
  2. Takang, 1996, The effects of comments and identifier names on program comprehensibility: an experiential study, Journal of Program Languages, 4, 143
  3. Collins american dictionary
  4. 2007, Handbook of Parametric and Nonparametric Statistical Procedures

Cited by

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
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.