The study of how social factors, such as class, gender, age, and ethnicity, affect the use and perception of language.