refactor( parser ): convert type when text is parsed