The ontogenesis of speech acts