Ambiguity resolution in language learning