quality:corruption, stylistic:style_transfer, information:extraction, information:classification, structural:reformatting
Literature

The Tang period was a golden age of Chinese literature and art. Over 48,900 poems penned by some 2,200 Tang authors have survived to the present day. Skill in the composition of poetry became a required study for those wishing to pass imperial examinations, while poetry was also heavily competitive; poetry contests amongst guests at banquets and courtiers were common. Poetry styles that were popular in the Tang included gushi and jintishi, with the renowned poet Li Bai (701–762) famous for the former style, and poets like Wang Wei (701–761) and Cui Hao (704–754) famous for their use of the latter. Jintishi poetry, or regulated verse, is in the form of eight-line stanzas or seven characters per line with a fixed pattern of tones that required the second and third couplets to be antithetical (although the antithesis is often lost in translation to other languages). Tang poems remained popular and great emulation of Tang era poetry began in the Song dynasty; in that period, Yan Yu (嚴羽; active 1194–1245) was the first to confer the poetry of the High Tang (c. 713 –766) era with "canonical status within the classical poetic tradition." Yan Yu reserved the position of highest esteem among all Tang poets for Du Fu (712–770), who was not viewed as such in his own era, and was branded by his peers as an anti-traditional rebel.

The Classical Prose Movement was spurred in large part by the writings of Tang authors Liu Zongyuan (773–819) and Han Yu (768–824). This new prose style broke away from the poetry tradition of the piantiwen (駢體文, "parallel prose") style begun in the Han dynasty. Although writers of the Classical Prose Movement imitated piantiwen, they criticized it for its often vague content and lack of colloquial language, focusing more on clarity and precision to make their writing more direct. This guwen (archaic prose) style can be traced back to Han Yu, and would become largely associated with orthodox Neo-Confucianism.

Short story fiction and tales were also popular during the Tang, one of the more famous ones being Yingying's Biography by Yuan Zhen (779–831), which was widely circulated in his own time and by the Yuan dynasty (1279–1368) became the basis for plays in Chinese opera. Timothy C. Wong places this story within the wider context of Tang love tales, which often share the plot designs of quick passion, inescapable societal pressure leading to the abandonment of romance, followed by a period of melancholy. Wong states that this scheme lacks the undying vows and total self-commitment to love found in Western romances such as Romeo and Juliet, but that underlying traditional Chinese values of inseparableness of self from one's environment (including human society) served to create the necessary fictional device of romantic tension.

There were large encyclopedias published in the Tang. The Yiwen Leiju encyclopedia was compiled in 624 by the chief editor Ouyang Xun (557–641) as well as Linghu Defen (582–666) and Chen Shuda (d. 635). The encyclopedia Treatise on Astrology of the Kaiyuan Era was fully compiled in 729 by Gautama Siddha (fl. 8th century), an ethnic Indian astronomer, astrologer, and scholar born in the capital Chang'an.

Chinese geographers such as Jia Dan wrote accurate descriptions of places far abroad. In his work written between 785 and 805, he described the sea route going into the mouth of the Persian Gulf, and that the medieval Iranians (whom he called the people of Luo-He-Yi) had erected 'ornamental pillars' in the sea that acted as lighthouse beacons for ships that might go astray. Confirming Jia's reports about lighthouses in the Persian Gulf, Arabic writers a century after Jia wrote of the same structures, writers such as al-Mas'udi and al-Muqaddasi. The Tang dynasty Chinese diplomat Wang Xuance traveled to Magadha (modern northeastern India) during the 7th century. Afterwards he wrote the book Zhang Tianzhu Guotu (Illustrated Accounts of Central India), which included a wealth of geographical information.

Many histories of previous dynasties were compiled between 636 and 659 by court officials during and shortly after the reign of Emperor Taizong of Tang. These included the Book of Liang, Book of Chen, Book of Northern Qi, Book of Zhou, Book of Sui, Book of Jin, History of Northern Dynasties and the History of Southern Dynasties. Although not included in the official Twenty-Four Histories, the Tongdian and Tang Huiyao were nonetheless valuable written historical works of the Tang period. The Shitong written by Liu Zhiji in 710 was a meta-history, as it covered the history of Chinese historiography in past centuries until his time. The Great Tang Records on the Western Regions, compiled by Bianji, recounted the journey of Xuanzang, the Tang era's most renowned Buddhist monk.

Other important literary offerings included Duan Chengshi 's (d. 863) Miscellaneous Morsels from Youyang, an entertaining collection of foreign legends and hearsay, reports on natural phenomena, short anecdotes, mythical and mundane tales, as well as notes on various subjects. The exact literary category or classification that Duan's large informal narrative would fit into is still debated amongst scholars and historians.