Not easily. cf "Scunthorpe Problem" https://en.wikipedia.org/wiki/Scunthorpe_problem
> What counts as "hate speech" is necessarily impossible
Most problems like this can be broken into "the easy bit" and "the rest". Focusing on the thorny problems in "the rest" is a mistake if you want to do something about the easy bit (and a tactic, if you want to avoid it).
There are a few reasonable ways to approach this, free-speach maximimalist only one of them. I'm sure there are unreasonable ways too.
(The point being that determined posters can work around regexes trivially and that regexes have a high occurrence of false positives.)
A week later a new sign was being installed, “Thai Food”
So I guess a translation error, and no one thought to say something until after it was installed.
Expensive mistake.