The emergence of sentiments within a social system