Ostracism, public shaming, and a good tongue-lashing have been a part of the justice system of virtually every culture ever to exist on the planet.