The Linguistic Ecology of Multilingual Communities