So the issue is not speech but rather thought. George Orwell had a term for punishing people for their thoughts:
https://en.wikipedia.org/wiki/Thoughtcrime