Why do we need to prevent people from expressing themselves? Why do we need to encourage such self-censorship as evident here? Why would the existence of such a library be a good thing?
Language is contextual. The use of certain terms is rude in some contexts, not in others. An algorithm will never be able to distinguish the two without being an AGI.
The only thing this encourages is self-censorship and dampening of expression.