A framework for language endangerment dynamics: the effects of contact and social change on language ecologies and language diversity · Study