Modeling Children's Acquisition of Grammatical Word Categories from Adult Input Using an Adaptation and Selection Algorithm