Perceptual and memory constraints on language acquisition