or Wen Ti
Chinese god of literature.
His chief heavenly task is to keep a register of men of letters so that he can mete out rewards and punishments to each according to merit. He had 17 reincarnations, during the ninth of which he appeared on earth as Zhang Ya. His writing earned him canonization during the Tang dynasty .