Dynamics of learning new words from context