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