Theory of Mind and Moral Judgments

In interacting with other human beings we presuppose that people have their own thoughts and beliefs and desires and that these states can be judged objectively on the basis of this knowledge of them being separate and distinct beings from us. This understanding of the intentional states of others is called Theory of Mind. What are the mechanisms that underlie Theory of Mind, and how important are they in judgments regarding the actions of others?