Formal linguistics as a cue to demographic history