Reliable identification of selection mechanisms in language change