So my game includes an online leaderbaord and i've been using a text input for players to create a name and Im wondering how I can detect bad words from maby a list of words and then deny that name being set.
Develop games in your browser. Powerful, performant & highly capable.
You can search for a javascript library which can detect profanity, here is an example:
github.com/web-mech/badwords