A Model of Children's Acquisition of Grammatical Word Categories Using an Adaptation and Selection Algorithm