How are there consequences for being caught if it's impossible to detect?
Moreover, why stop here? There are many great rules that are impossible to enforce. Why not a rule that the author isn't allowed to have any racist thoughts when writing the material?
We can't read minds, but it sure is a nice thing to care about, don't you think?