For example, Black English Vernacular or Pidgin languages would not be considered appropriate language use in a business or professional setting, whereas, sociolinguistically speaking, the former are both considered acceptable variations on the base language.
The study of language variation is concerned with social constraints determining language in its contextual environment. Code-switching is the term given to the use of different varieties of language in different social situations.
Sociolinguistics differs from sociology of language[?] in that the focus of sociolinguistics is the effect of the society on the language, while the latter's focus is on the language's effect on the society.
See also: Dell Hymes