翰林院
The Hanlin Academy was an institution created during the reign of Emperor Xuanzong of Tang (r. 712-755). It was located directly in the palace compound and staffed by officials who drafted official documents such as edicts. These officials, commonly appointed from the top three ranks of the palace examination graduates, came to be known as academicians after 738, when a new building was constructed to provide them living quarters. The title "academician" was not only for the staff of the Hanlin Academy, but any special assignment to special posts. The number of academicians in the Hanlin Academy was fixed to six at a later date and they were given the task of doing paperwork and consulting the emperor. The Hanlin Academy drafted documents about the appointment and dismissal of high ministers, proclamation of amnesties, and imperial military commands. It also aided the emperor in reading documents.