A computational approach to politeness with application to social factors