CoChat

Evaluating AI-Generated Web Code for Accessibility Compliance: A Metric-Driven Approach

Open access
Doush, Iyad Abu, Kassem, Reem · 2024 · Proceedings of the 11th International Conference on Software Development and Technologies for Enhancing Accessibility and Fighting Info-exclusion

The DOI matches its Crossref record; 9 of the 9 references it cites were found in a registry or an index.

Abstract

The rapid advancement of generative AI models presents many new opportunities and challenges in the domain of web accessibility.This paper aims to evaluate the accuracy of different generative AI models in producing web codes that adhere to accessibility standards.Two of the most popular AI chatbots, ChatGPT and Microsoft Copilot, were tested to assess their performance.Our methodology involves utilizing a foundational prompt design.To test the models' functionality, nine different web code examples were chosen.Before testing the chatbot, the ideal codes of the nine examples had to be developed to use them for comparison later.After providing the foundational prompt to the chatbot, the next prompt asks the chatbot to generate the required code.Based on the generated code, a follow-up prompt might be needed to fix any issues in the generated code or to further clarify the requirement.The generated code was evaluated using a comprehensive metric-based approach, ensuring it met the necessary accessibility requirements and usability enhancements.Five different metrics were chosen: correctness and functionality of the code, cross-browser compatibility, the number of prompts needed to produce the required code, the severity of accessibility issues, and conformance to standards, which included testing the code's compatibility with both the keyboard and screen reader.Our findings reveal significant insights into the capabilities and limitations of generative AI technology in creating accessible web code.The results showed great potential for both chosen chatbots and highlighted the importance of well-crafted prompts.In terms of web accessibility, the chatbots had similar results, however ChatGPT produced clearer webpages that demonstrated the concept in a better way when compared to Copilot.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/3696593.3696614

Cites

9 of 9 references verified0 citation errors · 0 not checkable

Statistics

Figures

Figure 2 Testing and Evaluation process of chosen AI chatbots.
Figure 2 Testing and Evaluation process of chosen AI chatbots.CC-BY · From the PDF
Image 2
CC-BY · From the PDF
Image 3
CC-BY · From the PDF
Figure 5 Accordion web page before and after follow-up prompt showing how the selected section can be visually identified.
Figure 5 Accordion web page before and after follow-up prompt showing how the selected section can be visually identified.CC-BY · From the PDF
Figure 6 Corrected code snippet of accordion.
Figure 6 Corrected code snippet of accordion.CC-BY · From the PDF
Figure 7 Accordion web page before and after follow-up prompt.
Figure 7 Accordion web page before and after follow-up prompt.CC-BY · From the PDF
Figure 9 Table created by Copilot vs. table created by ChatGPT.
Figure 9 Table created by Copilot vs. table created by ChatGPT.CC-BY · From the PDF

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

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?

1 more claim about this paper

Create a free account to see every claim other papers make about this one.

See all claims — free account

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 9

  1. David Kosiur. 2001. Understanding Policy-Based Networking (2nd ed.). Wiley, New York, NY.
  2. I. Abu Doush, K. Sultan, M. A. Al-Betar, Z. Almeraj, Z. A. A. Alyasseri, and M. A. Awadallah. 2023. Web accessibility automatic evaluation tools: To what extent can they be automated? CCF Trans. Pervasive Comput. Interact. 5, 3 (2023), 288-320. DOI: https://doi.org/10.1007/s42379-022-00123-8. · doi:10.1007/s42379-022-00123-8
  3. Y. Liu, T. Le-Cong, R. Widyasari, C. Tantithamthavorn, L. Li, X.-B. D. Le, and D. Lo. 2023. Refining ChatGPT-generated code: Characterizing and mitigating code quality issues. ACM Trans. Softw. Eng. Methodol. 33, 4 (2023), Article 123. DOI: https://doi.org/10.1145/3589989. · doi:10.1145/3589989
  4. E. Fajkovic. 2023. The impact of AI-generated code on web development: A comparative study of ChatGPT and GitHub Copilot. Bachelor's thesis, Blekinge Institute of Technology, Faculty of Computing, Department of Software Engi- neering.
  5. A. M. Dakhel. 2023. GitHub Copilot AI pair programmer: Asset or liability? J. Syst. Softw. 203 (2023), 110674. DOI: https://doi.org/10.1016/j.jss.2023.110674. · doi:10.1016/j.jss.2023.110674
  6. B. O. Yetistiren. 2022. Assessing the quality of GitHub Copilot's code genera- tion. In Proceedings of the 18th International Conference on Predictive Mod- els and Data Analytics in Software Engineering (PROMISE '22), 62-71. DOI: https://doi.org/10.1145/3565481.3566168. · doi:10.1145/3565481.3566168
  7. S. Bengesi, H. El-Sayed, M. K. Sarker, Y. Houkpati, J. Irungu, and T. Oladunni. 2024. Advancements in Generative AI: A comprehensive review of GANs, GPT, Autoencoders, Diffusion Models, and Transformers. IEEE Access 12, 1 (2024), 1-35. DOI: https://doi.org/10.1109/ACCESS.2023.1112345. · doi:10.1109/access.2023.1112345
  8. M. Scanlan. 2022. Reassessing the disability divide: Unequal access as the world is pushed online. Universal Access in the Information Society 21, 725-735. DOI: https://doi.org/10.1007/s10209-022-00832-1. · doi:10.1007/s10209-022-00832-1
  9. P. Denny, V. Kumar, and N. Giacaman. 2023. Conversing with Copilot: Exploring prompt engineering for solving CS1 problems using natural language. In Pro- ceedings of the 54th ACM Technical Symposium on Computer Science Education (SIGCSE '23), V. 1, 1136-1142. DOI: https://doi.org/10.1145/3545947.3554893. · doi:10.1145/3545947.3554893

Cited by

See all 13

Metadata

Authors
Doush, I. A., & Kassem, R.
Affiliations
American University of Kuwait (KW)
Venue
Proceedings of the 11th International Conference on Software Development and Technologies for Enhancing Accessibility and Fighting Info-exclusion
Publisher
ACM
Published
2024-11-13
Pages
338-344
OpenAlex
W4412782402
Cited by
8
References
9
Citations by year
2026: 7 · 2025: 1
FWCI
4.37
Type
conference paper
Language
en
Open access
Licence
cc-by
Locations
International Conference on Software Development and Technologies for Enhancing Accessibility and Fighting Info-exclusion (DSAI) (publishedVersion, cc-by)
Topics
  • Social Sciences › Human Factors and Ergonomics › Digital Accessibility for Disabilities
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Human-Computer Interaction › Usability and User Interface Design
Keywords
web accessibility, generative AI, AI-generated code, ChatGPT, Microsoft Copilot, prompt engineering, screen readers, keyboard navigation, browser compatibility, usability, evaluation metrics

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.