• Skip to main content

Annielytics.com

I make data sexy

  • About
  • Tools
  • Blog
  • Portfolio
  • Contact
  • Log In

Jan 30 2024

NLP Fix for LaTeX Formatting Bug

Currency sign parsing issue with LaTeX

I was performing QA on an AI-powered math app for students and discovered that word problems that included American currency triggered LaTeX formatting, causing them to have a strange appearance in the app.

To remedy this issue, I used natural language processing (NLP) to identify word problems with currency and escape the $’s so they wouldn’t trigger LaTeX formatting. I tested the output in the terminal. The engineers decided to let the browser parse it for MVP, so I used ChatGPT to translate it to JavaScript and tested it in the Network tab of Chrome Developer Tools. Then I lobbed that over to the frontend developer.

Written by

Copyright © 2025