I don't think Discord allows lookaheads I'm not a regex expert but this explains things well: discord/discord-api-docs#6860
Honestly, I thought discord rolled their own regex parser for that bit, which I was going to say seemed like a weird thing to spend time on for a project with a smaller userbase like this. But if it's a readily available and battle-tested rust crate, then sure. AFAIK there's no rust in the fluxer backend currently, so that might be a concern to look into as well (in terms of platform support, etc). There probably are packages for other languages, but they might not be as performant/battle tested.
A regex is server side. It's per server. Templates would be made by Fluxer themself.
All communities on the same server sharing the regex list seems like it would be a lot of headache for the main server in regards to slurs in other languages.
Speaking of, do regexes work well for pictographic languages? Or can you go around saying the n-word in chinese without (immediate) repercussions?
Thread
Comment by @TheNamlessGuy
Comment by @TheNamlessGuy