Linguistic diversity in space and time