Phonological grammar and frequency: an integrated approach door