It's illegal to deny the holocaust, or have Nazi paraphernalia etc., but it's not illegal to the word or teachers who taught history would all be in jail.
Yes, it can be damaging to say "nigger" but it's not illegal. As I said, there's fine difference. It's actually illegal in Malaysia for a non-Muslim to say,write, or what not the word "Allah", and criminal charges can, and most likely will, be placed on those who do.
-Nam