As kube-system said in a sister comment, "words that can get you in trouble" is the definition of profanity. [Wikipedia uses the phrase "socially offensive language"](https://en.wikipedia.org/wiki/Profanity), which accords precisely with what I learned about the concept from sociolinguistics. So it's entirely in line with accepted definitions to treat taboo racial slurs as a kind of profanity.