Diatype is a term first used by the linguist Michael Gregory to describe a type of language variation which is determined by its social purpose. In his formulation, language variation can be divided into two categories:
dialect, for variation according to user (eg.
African American Vernacular English), and diatype for variation according to use (eg. the specialised language of an academic journal).
See more at Wikipedia.org...