You could make a web request to some API that handles things like this, like: https://promptapi.com/marketplace/description/bad_words-api
Or you could go with u/-elsewhere_ solution, which is cheaper and works just as well.