Exploratory grammar learning in a multimedia environment