First Steps Towards Predicting the Readability of Programming Error Messages

被引:2
|
作者
Prather, James [1 ]
Denny, Paul [2 ]
Becker, Brett A. [3 ]
Nix, Robert [4 ]
Reeves, Brent N. [1 ]
Randrianasolo, Arisoa S. [1 ]
Powell, Garrett [1 ]
机构
[1] Abilene Christian Univ, Abilene, TX 79699 USA
[2] Univ Auckland, Auckland, New Zealand
[3] Univ Coll Dublin, Dublin, Ireland
[4] Oklahoma Christian Univ, Oklahoma City, OK USA
关键词
compiler errors; errors; error messages; machine learning; PEMs; programming error messages; readability;
D O I
10.1145/3545945.3569791
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Reading a programming error message is the first step in understanding what it is trying to tell the programmer about how to fix an error in their code. However, these are often difficult to read, especially for novices which is not surprising given that error messages in many of the most popular languages in which novices learn to code were not written with readability in mind. As a result, novices frequently struggle to understand them. This is a long-standing problem, with researchers highlighting concerns about programming error message readability over the last six decades. Very recent work has put forward evidence of the need for measuring readability in error messages and a framework for doing so. This framework consists of four factors of readability for programming error messages: message length, vocabulary, jargon, and sentence construction. We use this framework to implement an approach to automatically assess the readability of programming error messages. Using established readability factors as predictors in a machine learning model, we train several models using a dataset of C and Java error messages. We examine the performance of these models, and apply the best performing model to a previously published set of messages evaluated for readability by experts, non-experts and students. Our results validate the previously proposed readability factors, and our model classifies messages similarly to human raters. Finally, we discuss future work needed to improve the accuracy of the model.
引用
收藏
页码:549 / 555
页数:7
相关论文
共 50 条
  • [21] Taking the first steps towards infection
    Teitzel, Gail
    TRENDS IN MICROBIOLOGY, 2013, 21 (08) : 359 - 359
  • [22] First steps towards a Predicate Matrix
    Lopez de Lacalle, Maddalen
    Laparra, Egoitz
    Rigau, German
    PROCEEDINGS OF THE SEVENTH GLOBAL WORDNET CONFERENCE, GWC 2014, 2014, : 363 - 371
  • [23] First Steps Towards an Artificial Judge
    Oimann, Ann-Katrien
    TIJDSCHRIFT VOOR FILOSOFIE, 2021, 83 (03) : 375 - 401
  • [24] FIRST STEPS TOWARDS EUGENIC REFORM
    Darwin, Leonard
    EUGENICS REVIEW, 1912, 4 (01): : 26 - 38
  • [25] First steps towards an ontology for astrophysics
    Sarro, LM
    Martínez, R
    KNOWLEDGE-BASED INTELLIGNET INFORMATION AND ENGINEERING SYSTEMS, PT 2, PROCEEDINGS, 2003, 2774 : 1389 - 1395
  • [26] First Steps Towards a Symplectic Dynamics
    Bramham, B.
    Hofer, H.
    IN MEMORY OF C.C. HSIUNG: LECTURES GIVEN AT THE JDG SYMPOSIUM, LEHIGH UNIVERSITY, JUNE 2010, 2012, 17 : 127 - 177
  • [27] Applying Software Engineering Anti-patterns to Programming Error Messages
    Santos, Eddie Antonio
    Karvelas, Ioannis
    Becker, Brett A.
    PROCEEDINGS OF THE 54TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, VOL 2, SIGCSE 2023, 2023, : 1297 - 1297
  • [28] Unexpected Tokens: A Review of Programming Error Messages and Design Guidelines for the Future
    Becker, Brett A.
    Denny, Paul
    Pettit, Raymond
    Bouchard, Durell
    Bouvier, Dennis J.
    Harrington, Brian
    Kamil, Amir
    Karkare, Amey
    McDonald, Chris
    Osera, Peter-Michael
    Pearce, Janice L.
    Prather, James
    PROCEEDINGS OF THE 2019 ACM CONFERENCE ON INNOVATION AND TECHNOLOGY IN COMPUTER SCIENCE EDUCATION (ITICSE '19), 2019, : 253 - 254
  • [29] Effects of Error Messages on Students' Ability to Understand and Fix Programming Errors
    Kadekar, Harsha B. M.
    Sohoni, Sohum
    Craig, Scotty D.
    2018 IEEE FRONTIERS IN EDUCATION CONFERENCE (FIE), 2018,
  • [30] Towards predicting human error: Eye gaze analysis for identification of cognitive steps performed by control room operators
    Kodappully, Madhu
    Srinivasan, Babji
    Srinivasan, Rajagopalan
    JOURNAL OF LOSS PREVENTION IN THE PROCESS INDUSTRIES, 2016, 42 : 35 - 46