AI plays 'Mad Libs' to learn grammar the way kids do