Is it thoughts? Is it actions? Is it only one or the other?
As far as thoughts go, there are many prejudiced and/or racist or sexist thinking people. We never are able to label them until they commit actions.
Should an action be punished additionally because in the process of committing said action the thoughts behind it were revealed?
Chance as a real force is a myth. It has no basis in reality and no place in scientific inquiry. For science and philosophy to continue to advance in knowledge, chance must be demythologized once and for all. —RC Sproul
"A lie can travel half way around the world while the truth is putting on its shoes." —Mark Twain