Computer Science and Engineering
Back to all posts

Title II Compliance and AI-Driven Document Remediation

This post focuses upon Title II accessibility. It documents a real-world problem and proposes novel and computationally repeatable applications of AI to solve it. The application exists as an open source project that employs LangGraph and OpenRouter to convert LaTeX beamer documents to Typst. In part, it was inspired by UB CATT[5] and Angela Thering,[6] an accessibility pro focused upon Title II remediation. There are many concepts covered in this post. The references section at the bottom provides additional reading.

What is Title II?

A requirement for all universities is providing content that is Title II compliant.[1] Compliance augments course content with accessibility hooks. For example, an accessible PDF file will have a set of embedded tags, as though sections of text have been highlighted. The tags model the document's structural elements, such as its sections, figures, and appendices. The tags are the guide posts for accessibility tools. They provide a navigable model for screen reader tools.[2] Often, they provide alternative text that describes the visual semantics of a figure, an equation, or a table. In a nutshell, they provide the critical content and context to make course material accessible to all.

A Title II challenge is the sheer volume of document types that require what is called remediation. This is the act of adding tags for accessibility tools where none existed before. Word files, PowerPoint or Keynote, and PDFs all need the incorporation of accessibility tags. PDF is particularly problematic. It is highly focused on visual presentation of content. The use of tags to provide accessibility is not native to the format. Commercial companies like Adobe[7][8] and Microsoft[9] have the personnel to add tag functionality to software products. But what about the LaTeX community? How have they proceeded? For those unfamiliar with LaTeX, here is a brief primer: think HTML markup focused on producing PDFs for journal or conference submissions.[10]

Open Source LaTeX Title II Compliance

The LaTeX community has banded together to solve many of the accessibility tagging challenges. One only needs to consult the tagpdf project[11] for an example. It represents a monumental effort by dedicated individuals who live and breathe accessibility. tagpdf supplies most of what the LaTeX community needs to generate Title II compliant documents.[12] Without this project and the work of tagpdf, the LaTeX community would be lost. However, one problem remains: a particular LaTeX PDF document class called beamer. Think of it as PowerPoint or Keynote but with niceties geared for academic quality presentations. There is simply no support team working to make the beamer format compliant; it is too hard.

Imagine you are a professor with dozens or hundreds of LaTeX beamer presentations. Your options are not promising. You may switch to another format supported by LaTeX called ltxtalk[13] or switch entirely to another typesetting environment called Typst.[14][15] Neither is a silver bullet solution and requires a great deal of manual effort. In this instance, a silver bullet would be "Change this one line, add this package, and presto, the document is Title II compliant." This is somewhat how tagpdf works.

Human Guided AI Remediation

Here, certainly, is an opportunity for AI and LLMs to come to the rescue. A legitimate, real, and useful opportunity! This idea was developed collaboratively with my researcher Sushrut Gaikwad.[16] Anyone who is in need of an AI and math savvy researcher or employee can find no finer than Sushrut.

The open source project powering this work is available on GitHub at https://github.com/SushrutGaikwad/b2t. The repository contains the full LangGraph implementation, setup instructions, and examples to get started.

Here is the idea:

  1. We utilize LangGraph.[3] This framework has the potential (just potential right now, the next few years will be telling) to allow program development as graph structures.
  2. We define a graph structure that allows the user to point to a directory of beamer files as input. Its output node (ideally) provides Typst equivalent files.[14] Typst has the same terrific typesetting qualities of LaTeX but natively generates Title II compliant PDFs.
  3. The graph nodes represent computation steps. Think of each node as its own software program. The first set of nodes prepares the beamer files for AI and LLM processing.
  4. There is a critical node that includes an LLM agent. The choice of agent is yours! It uses OpenRouter.[4] Note: this is the part where you will need an API key for one of the LLMs. A key with $10 of funds will be more than enough to experiment with, probably too much.
  5. This LLM node translates a beamer document into a (hopefully) equivalent Typst document. The step can be tuned so it is computationally repeatable: given the same beamer document, the same Typst document is output.
  6. There are steps for manual intervention as well. Users are equal partners in this endeavor. They get an opportunity to look at each slide created. They make changes where they feel it is warranted. Also, there may be errors in the conversion process. Users will need to fix these.

The project is offered as open source with an Apache license. It is not perfect. It has issues. At times it requires a good deal of manual intervention. However, it is continually getting better. It is also a start. Our team welcomes any feedback or assistance from anyone who wishes to help out. Also, if you wish to learn LangGraph with a challenging application, this is a perfect challenge.

As updates are warranted, we will do more posts!

References

  1. ADA Title II – 2024 Web Accessibility Final Rule (DOJ Fact Sheet)
    https://www.ada.gov/resources/2024-03-08-web-rule/
  2. ADA Title II Regulations (28 CFR Part 35)
    https://www.ada.gov/law-and-regs/regulations/title-ii-2010-regulations/
  3. LangGraph Documentation
    https://langchain-ai.github.io/langgraph/
  4. OpenRouter
    https://openrouter.ai
  5. University at Buffalo Center for Assistive Technology (UB CATT)
    https://www.buffalo.edu/catt.html
  6. Angela Thering, Ph.D. – LinkedIn
    https://www.linkedin.com/in/acthering
  7. Adobe Acrobat – Creating Accessible PDFs
    https://helpx.adobe.com/acrobat/using/creating-accessible-pdfs.html
  8. Adobe PDF Accessibility Auto-Tag API
    https://developer.adobe.com/document-services/apis/pdf-accessibility-auto-tag/
  9. Microsoft 365 – Create Accessible PDFs
    https://support.microsoft.com/en-us/accessibility/office-accessibility/create-accessible-pdfs
  10. Learn LaTeX (Official LaTeX Project Primer)
    https://www.learnlatex.org/
  11. tagpdf Project (LaTeX PDF Tagging) – GitHub
    https://github.com/latex3/tagpdf
  12. LaTeX Project – Tagged PDF Documentation
    https://latex-project.org/publications/indexbytopic/pdf/
  13. ltxtalk Document Class – CTAN
    https://ctan.org/pkg/ltxtalk
  14. Typst
    https://typst.app/
  15. Typst Documentation
    https://typst.app/docs/
  16. Sushrut Ishwar Gaikwad – LinkedIn
    https://www.linkedin.com/in/sushrutgaikwad