I'm genuinely curious, what's the reason for filtering out words based on offensive-ness?
I'd imagine it'd be easier to screen the chosen word every day for your criteria and, beyond that, let people type whatever they want as long as what they type is in the dictionary