Inspiration

In a lot of math classes, the students who struggle with word problems are not struggling with math. An adult English learner can solve 2x - 5 = 11 in her head, then read "Five less than twice a number is 11" and write 5 - 2x = 11. "Less than" flips the order: the number you hear first is the one you use last. Math English is full of small traps like that, and most of them never get explained. Teachers warn against keyword tricks and say it works better when students put the problem in their own words, in any language (EdWeek, 2021). I wanted a tool that does that kind of reading help and still leaves all the math to the student.

The learner and the barrier

The learner is Ana, a made up example: an adult ESOL student taking a community college math class. She speaks Spanish, studies on the bus on an old phone, and often has no data. Her task is to turn a word problem into an equation. The barrier is the English: phrases that flip order ("less than", "fewer than", "subtracted from"), make groups ("the sum of"), or hide numbers ("twice", "a quarter of", "per").

What it does

  • Underlines every math phrase it knows and adds an icon. Phrases that flip the order get a double underline and a flip icon, so color is never the only clue.
  • Select a phrase to see a plain English explanation, a small bar sketch with a text description, and an optional Spanish note.
  • A box to restate the problem in her own words, in any language. Nothing there is saved.
  • She types her own equation. The tool checks whether it means the same as the problem. If it matches a known misreading, the hint names the phrase she misread. It never shows the right equation or the answer.
  • Practice: three more problems with the same kind of trap, scored on first tries.
  • Works offline after the first visit and also straight from the downloaded files. No account and no tracking.

Before and after

Before: Ana writes 5 - 2x = 11. An online phrase converter would just give her "2x - 5", and she still would not know why.

After: With airplane mode on and only the keyboard, Ana opens "less than" and reads that the order flips. Her setup 5 - 2x = 11 gets the hint: look again at "less than", which amount do you start with? She changes it to 2x - 5 = 11, and the tool says her setup matches and tells her to solve it herself. Then she does three more flip problems.

How I built it

Plain HTML, CSS, and JavaScript with no framework and no server. A small parser reads one variable linear equations, and two setups count as the same if one is a multiple of the other after moving everything to one side, as long as the write-up still looks like a setup from the words. So "11 = 2x - 5", "2x = 11 + 5", and the one-side form "2x - 5 - 11 = 0" all count, but a bare "x = 8", a guess like "x - 8 = 0", "x + 0 = 8", "x + 1 = 9", "x - 8 = 1 - 1", or a combined form like "2x = 16" is turned away because those are answers, not setups. Any equation that means the same thing still counts, so a rearranged guess (x + 5 = 11 + 2, 2x + 1 = 17, x + x = x + 8) can still confirm it. The tool never prints the correct equation or the value of x. Each of the 15 practice problems lists common wrong setups and the phrase behind each one, which is how the hint knows what to point at. A service worker caches the app so it works offline. The whole app is about 50 KB.

Accessibility and testing

I aimed for WCAG 2.2 AA. Everything works with only the keyboard. Selecting a phrase moves focus to its explanation and a button brings you back. Results are announced through a screen reader status region, and Spanish text is marked as Spanish. There is a text size control up to 200%, it fits a 320 px screen with no sideways scrolling, and it follows dark mode and reduced motion settings.

Automated checks so far: 15 unit tests (parser, checker, phrase finder, and a check that no message ever shows the setup or the value of x), and 10 browser checks with axe-core in light mode, dark mode, at 320 px with 200% text, and during every step of the flow. All of them pass with zero axe violations. The browser checks also run the Ana example with only the keyboard and confirm it works offline.

Challenges

Deciding what counts as the "same setup" without solving the problem for the student. Writing hints that name the phrase but do not give away the equation. Making phrase buttons that sit inside a sentence but still work well with a keyboard and a screen reader.

Limitations and what is next

  • Only one variable linear equations for now.
  • Hints are specific only for the misreadings listed with each problem. Other mistakes get a general hint.
  • The checker blocks obvious answer forms, including x = 8, x - 8 = 0, x + 0 = 8, x + 1 = 9, x - 8 = 1 - 1, and 2x = 16. Any equation that means the same thing still counts, so a rearranged guess (x + 5 = 11 + 2, 2x + 1 = 17, x + x = x + 8) can still confirm it. One-side setups that keep the problem's numbers, like 2x - 5 - 11 = 0, still count as setups. If a problem's own setup is already a one-term form like 30x = 90, a scaled version of that shape can still count as right. The tool never prints the correct equation or the value of x.
  • The Spanish notes are drafts and still need a fluent Spanish speaking math teacher to check them. The app says this on screen.
  • Not tested with real learners yet, so I am not claiming any learning results.
  • Next: more problems and phrases, a teacher page for adding problems, and more languages once there are reviewers.

Credits, AI use, and event work

  • Related tools: CodingAce's "Translate Algebraic Expressions" and SolveStep convert phrases into expressions or solve them. Flip Words never shows the equation or answer and only checks the student's own setup.
  • Teaching idea: EdWeek, "Beware of Teaching Math Vocabulary Out of Context!" (2021).
  • Dev tools only, not shipped: Playwright and axe-core.
  • AI use: I built this with heavy help from an AI assistant. It wrote most of the code, the explanations, the Spanish drafts, the problems, and the tests, from my choice of problem and direction.
  • Event work: everything was created during AccessED Hacks, starting November 17, 2026. No earlier code. All examples are made up and no real learner data is used.

Built With

Share this project:

Updates

Submission history