Classical Chinese or Literary Chinese (古文 (gǔ wén = "ancient text") or 文言文 (wényán wén = "text of written language")) is a traditional style of written Chinese based on the grammar and vocabulary of ancient Chinese, making it different from any modern spoken form of Chinese. Classical Chinese was used for almost all formal correspondence in China until the early 20th century, and also, during various periods, in Japan, Korea and Vietnam. Among Chinese speakers, Classical Chinese has been largely replaced by written vernacular Chinese (白話; pinyin: báihuà, "plain speech"), a style of writing that is similar to modern spoken Mandarin Chinese, while speakers of non-Chinese languages have largely abandoned Classical Chinese in favor of local vernaculars.
Literary Chinese is known as kanbun in Japanese, hanmun in Korean, and Hán Văn in Vietnamese (From 漢文 in all three cases; pinyin: hànwén, "Han writing").
While the terms Classical Chinese and Literary Chinese are often used interchangeably, Sinologists generally agree that they are in fact different. "Classical" Chinese (古文; pinyin: gǔ wén, "ancient writing") refers to the written language of China from the Zhou Dynasty, and especially the Spring and Autumn Period, through to the end of the Han Dynasty (AD 220). Classical Chinese is therefore the language used in many of China's most influential books, such as the Analects of Confucius, the Mencius and the Tao Te Ching. (The language of even older texts, such as the Classic of Poetry, is sometimes called Old Chinese, or pre-Classical.)