{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/104567"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/104567","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Leveraging Prompt Engineering for Automated Grammatical Error Detection and Q-Matrix Coding for Cognitive Diagnostic Assessment","abstract":"Automated grammatical error detection (GED) has emerged as a powerful tool to support second-language writing instruction. While most existing tools focus on surface-level correction, a few offer insights into the underlying grammatical skills learners struggle with. The purpose of this study is to develop, apply, and evaluate a grammar error detection and labelling system that integrates prompt-engineered large language models (LLMs) with Q-matrix-based cognitive diagnostic assessment (CDA) to identify grammatical skill patterns among English as a Second Language (ESL) learners.GPT-4o was prompted to annotate 132 student essays with structured error tags using a standardized codebook. These tagged outputs were compared to human-annotated essays using precision, recall, F1-score, and Cohen’s kappa metrics. The GPT-4o model performed with high consistency (Precision = 0.74, Recall = 0.78, F1 = 0.70, κ = 0.75), demonstrating strong alignment with instructor annotations. To diagnose learners’ grammatical skill gaps, a Q-matrix was constructed to map each error tag to one or more latent grammar skills. Analysis of the construct-level Q-matrix revealed nine distinct error patterns among student essays, reflecting variation in grammatical challenges across the sample. Vocabulary and sentence structure errors were the most frequent, while verb tense and coherence issues appeared less often. Clustering identified groups of learners with shared weaknesses, providing a basis for differentiated instruction. This integrated framework shows that combining prompt engineering with CDA offers a scalable method for generating individualized grammar feedback and supporting ESL teaching and learning. The methodology and architecture described can be adapted for use in other grammar instruction settings and second language education contexts.","abstract_html":"Automated grammatical error detection (GED) has emerged as a powerful tool to support second-language writing instruction. While most existing tools focus on surface-level correction, a few offer insights into the underlying grammatical skills learners struggle with. The purpose of this study is to develop, apply, and evaluate a grammar error detection and labelling system that integrates prompt-engineered large language models (LLMs) with Q-matrix-based cognitive diagnostic assessment (CDA) to identify grammatical skill patterns among English as a Second Language (ESL) learners.GPT-4o was prompted to annotate 132 student essays with structured error tags using a standardized codebook. These tagged outputs were compared to human-annotated essays using precision, recall, F1-score, and Cohen’s kappa metrics. The GPT-4o model performed with high consistency (Precision = 0.74, Recall = 0.78, F1 = 0.70, κ = 0.75), demonstrating strong alignment with instructor annotations. To diagnose learners’ grammatical skill gaps, a Q-matrix was constructed to map each error tag to one or more latent grammar skills. Analysis of the construct-level Q-matrix revealed nine distinct error patterns among student essays, reflecting variation in grammatical challenges across the sample. Vocabulary and sentence structure errors were the most frequent, while verb tense and coherence issues appeared less often. Clustering identified groups of learners with shared weaknesses, providing a basis for differentiated instruction. This integrated framework shows that combining prompt engineering with CDA offers a scalable method for generating individualized grammar feedback and supporting ESL teaching and learning. The methodology and architecture described can be adapted for use in other grammar instruction settings and second language education contexts.","abstract_has_math":false,"creators":["Abroampah, Doris A."],"institution":"University of Alberta","degree_name":"Master of Education","degree_level":"Master's","degree_discipline":"Measurement, Evaluation, and Data Science","degree_department":null,"school":null,"contributors":[],"advisors":["Gierl, Mark (Educational Psychology)"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025-11","date_published":"2025-11","updated_at":"2026-11-26T21:17:51Z","subjects":["automated grammatical error detection","Q-matrix","cognitive diagnostic assessment","large language models"],"languages":["en"],"rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"rights_urls":["https://creativecommons.org/licenses/by-nc/4.0/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/83275","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/83275","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F104567","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F104567","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Gierl, Mark (Educational Psychology)"]},{"key":"dc:creator","label":"Author","values":["Abroampah, Doris A."]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-11-17T16:24:07Z"]},{"key":"dc:date.issued","label":"Date","values":["2025-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Measurement, Evaluation, and Data Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Education"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["automated grammatical error detection","Q-matrix","cognitive diagnostic assessment","large language models"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."]},{"key":"dc:rights.uri","label":"Rights URI","values":["https://creativecommons.org/licenses/by-nc/4.0/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/83275"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Automated grammatical error detection (GED) has emerged as a powerful tool to support second-language writing instruction. While most existing tools focus on surface-level correction, a few offer insights into the underlying grammatical skills learners struggle with. The purpose of this study is to develop, apply, and evaluate a grammar error detection and labelling system that integrates prompt-engineered large language models (LLMs) with Q-matrix-based cognitive diagnostic assessment (CDA) to identify grammatical skill patterns among English as a Second Language (ESL) learners.GPT-4o was prompted to annotate 132 student essays with structured error tags using a standardized codebook. These tagged outputs were compared to human-annotated essays using precision, recall, F1-score, and Cohen’s kappa metrics. The GPT-4o model performed with high consistency (Precision = 0.74, Recall = 0.78, F1 = 0.70, κ = 0.75), demonstrating strong alignment with instructor annotations. To diagnose learners’ grammatical skill gaps, a Q-matrix was constructed to map each error tag to one or more latent grammar skills. Analysis of the construct-level Q-matrix revealed nine distinct error patterns among student essays, reflecting variation in grammatical challenges across the sample. Vocabulary and sentence structure errors were the most frequent, while verb tense and coherence issues appeared less often. Clustering identified groups of learners with shared weaknesses, providing a basis for differentiated instruction. This integrated framework shows that combining prompt engineering with CDA offers a scalable method for generating individualized grammar feedback and supporting ESL teaching and learning. The methodology and architecture described can be adapted for use in other grammar instruction settings and second language education contexts."]},{"key":"dc:title","label":"Title","values":["Leveraging Prompt Engineering for Automated Grammatical Error Detection and Q-Matrix Coding for Cognitive Diagnostic Assessment"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Gierl, Mark (Educational Psychology)"],"dc:creator":["Abroampah, Doris A."],"dc:date.accessioned":["2025-11-17T16:24:07Z"],"dc:date.issued":["2025-11"],"dc:description.abstract":["Automated grammatical error detection (GED) has emerged as a powerful tool to support second-language writing instruction. While most existing tools focus on surface-level correction, a few offer insights into the underlying grammatical skills learners struggle with. The purpose of this study is to develop, apply, and evaluate a grammar error detection and labelling system that integrates prompt-engineered large language models (LLMs) with Q-matrix-based cognitive diagnostic assessment (CDA) to identify grammatical skill patterns among English as a Second Language (ESL) learners.GPT-4o was prompted to annotate 132 student essays with structured error tags using a standardized codebook. These tagged outputs were compared to human-annotated essays using precision, recall, F1-score, and Cohen’s kappa metrics. The GPT-4o model performed with high consistency (Precision = 0.74, Recall = 0.78, F1 = 0.70, κ = 0.75), demonstrating strong alignment with instructor annotations. To diagnose learners’ grammatical skill gaps, a Q-matrix was constructed to map each error tag to one or more latent grammar skills. Analysis of the construct-level Q-matrix revealed nine distinct error patterns among student essays, reflecting variation in grammatical challenges across the sample. Vocabulary and sentence structure errors were the most frequent, while verb tense and coherence issues appeared less often. Clustering identified groups of learners with shared weaknesses, providing a basis for differentiated instruction. This integrated framework shows that combining prompt engineering with CDA offers a scalable method for generating individualized grammar feedback and supporting ESL teaching and learning. The methodology and architecture described can be adapted for use in other grammar instruction settings and second language education contexts."],"dc:identifier.doi":["https://doi.org/10.7939/83275"],"dc:language.iso":["en"],"dc:rights":["This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law."],"dc:rights.uri":["https://creativecommons.org/licenses/by-nc/4.0/"],"dc:subject":["automated grammatical error detection","Q-matrix","cognitive diagnostic assessment","large language models"],"dc:title":["Leveraging Prompt Engineering for Automated Grammatical Error Detection and Q-Matrix Coding for Cognitive Diagnostic Assessment"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Measurement, Evaluation, and Data Science"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Education"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:17:51Z"}