The study of the relationship between language and social factors, such as class, ethnicity, gender, and age.