A computational approach to mapping replacement processes in language change