phrase map parsing