A framework for studying languages in contact: a prolegomenon to a theory