The study of how language use varies within different social groups and in different social contexts.