extract inflector from template