A Model of Children’s Acquisition of Grammatical Word Categories from Adult Language Input Using an Adaption and Selection Algorithm