The colored words on this site went through three versions before they actually did their job. I started with a fully automatic keyword matcher, then made it per-page, and ended up deleting most of it for something way simpler. This is the builder’s side of that, including the parts that didn’t work.
The Goal I play a lot of ASCII and text-based games, and one of my favorite details in Caves of Qud is how it colors certain words: an item name in a gradient, a faction in its own color. It makes a wall of text easy to scan. I wanted the same thing here, with a few constraints:
...