Locality and globality in phonological variation