A Corpus-Driven Approach to Language Contact: Endangered Languages in a Comparative Perspective