Frequency as a determinant in grammatical variation and change