Generating key points…
Answers are grounded in this paper and cite their sources.
Grammar remains one of the most challenging areas for English as a Second Language (ESL) writers, and instructors often struggle to provide timely, consistent, and detailed feedback. Recent advances in large language models (LLMs) offer new opportunities to automate grammatical error detection, but their use for deeper diagnostic assessment is still underexplored. This study examines how prompt engineering can guide GPT-4o to generate structured grammatical error labels and how these labels can be transformed into Q-matrix-based diagnostic profiles through Q-matrix coding. Using a dataset of 132 student essays, GPT-4o was prompted with a standardized EAP codebook to identify and label grammatical errors across categories such as verb tense, word form, sentence structure, and coherence. Model outputs were compared with instructor annotations using Precision, Recall, F1-score, and Cohen’s Kappa. The model showed moderate-to-substantial alignment with the instructor annotations (Precision = 0.74, Recall = 0.78, F1 = 0.76, Kappa = 0.75). These labelled errors were then mapped onto four grammatical skill domains to construct Q-matrix-based learner-by-skill diagnostic profiles. Analysis revealed nine diagnostic patterns and four learner clusters with distinct grammar challenges. Findings show that LLM-generated error tags, when guided by clear prompts, can support Q-matrix-based diagnostic profiling of grammatical difficulties. The integration of prompt engineering and Q-matrix coding provides a scalable and interpretable framework for summarizing learners’ patterns of grammatical difficulty, supporting more targeted instructional feedback. This study demonstrates a novel pathway for connecting automated error detection with Q-matrix-based diagnostic profiling in ESL writing.
No takes yet. Share an insight, caveat, or question.
Abroampah et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: