The geometry of linguistic variation