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 条
  • [1] Towards Assessing the Readability of Programming Error Messages
    University College Dublin, Ireland
    不详
    不详
    不详
    不详
    ACM Int. Conf. Proc. Ser., 1600, (181-188): : 181 - 188
  • [2] On designing programming error messages for novices: Readability and its constituent factors
    Denny, Paul
    Prather, James
    Becker, Brett A.
    Conference on Human Factors in Computing Systems - Proceedings, 2021,
  • [3] Programming with Ordinary Differential Equations: Some First Steps Towards a Programming Language
    Bournez, Olivier
    REVOLUTIONS AND REVELATIONS IN COMPUTABILITY, CIE 2022, 2022, 13359 : 39 - 51
  • [4] The first steps towards the era of personalised vaccinology: predicting adverse reactions
    Pellegrino, P.
    Falvella, F. S.
    Perrone, V.
    Carnovale, C.
    Brusadelli, T.
    Pozzi, M.
    Antoniazzi, S.
    Cheli, S.
    Perrotta, C.
    Clementi, E.
    Radice, S.
    PHARMACOGENOMICS JOURNAL, 2015, 15 (03): : 284 - 287
  • [5] Towards predicting mobility and resolution in polymeric media: Some first steps
    Chrambach, A
    Radko, SP
    ELECTROPHORESIS, 1998, 19 (8-9) : 1284 - 1287
  • [6] The first steps towards the era of personalised vaccinology: predicting adverse reactions
    P Pellegrino
    F S Falvella
    V Perrone
    C Carnovale
    T Brusadelli
    M Pozzi
    S Antoniazzi
    S Cheli
    C Perrotta
    E Clementi
    S Radice
    The Pharmacogenomics Journal, 2015, 15 : 284 - 287
  • [7] Human error analysis in radiotherapy: first steps towards a prospective and quantitative method
    Pandya, D.
    Podofillini, L.
    Emert, F.
    Lomax, A. J.
    Dang, V. N.
    RADIOTHERAPY AND ONCOLOGY, 2015, 115 : S532 - S533
  • [8] First Steps Towards Automatically Defining the Difficulty of Maze-Based Programming Challenges
    Kanellopoulou, Ioanna
    Garaizar, Pablo
    Guenaga, Mariluz
    IEEE ACCESS, 2021, 9 : 64211 - 64223
  • [9] Enhanced compiler messages of error in Python']Python with focuses in readability in CS1
    Carvalho, Gabriel
    Ramos, Vinicius
    Cechinel, Cristian
    Rocha, Juary Costa
    Gomes, Anabela
    Mendes, Antonio Jose
    2021 XVI LATIN AMERICAN CONFERENCE ON LEARNING TECHNOLOGIES (LACLO 2021), 2021, : 389 - 396
  • [10] Using Large Language Models to Enhance Programming Error Messages
    Leinonen, Juho
    Hellas, Arto
    Sarsa, Sami
    Reeves, Brent
    Denny, Paul
    Prather, James
    Becker, Brett A.
    PROCEEDINGS OF THE 54TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, VOL 1, SIGCSE 2023, 2023, : 563 - 569