of several Prakrit languages from around the 3rd century BCE, combined and partially Sanskritized. There is no attested dialect of Middle Indo-Aryan with all the features of Pali. In the modern era, it has been possible to compare Pali with inscriptions known to be in Magadhi Prakrit, as well as other texts and grammars of that language. While none of the existing sources specifically document pre-Ashokan Magadhi, the available sources suggest that Pali is not equatable with that language. Modern scholars generally regard Pali to have originated from a western dialect, rather than an eastern one. Pali has some commonalities with both the western Ashokan Edicts at Girnar in Saurashtra, and the Central-Western Prakrit found in the eastern Hathigumpha inscription. These similarities lead scholars to associate Pali with this region of western India. Nonetheless, Pali does retain some eastern features that have been referred to as Māgadhisms. Pāḷi, as a Middle Indo-Aryan language, is different from Classical Sanskrit more with regard to its dialectal base than the time of its origin. A number of its morphological and lexical features show that it is not a direct continuation of Sanskrit. Instead it descends from one or more dialects that were, despite many similarities, different from . Early history The Theravada commentaries refer to the Pali language as "Magadhan" or the "language of Magadha". This identification first appears in the commentaries, and may have been an attempt by Buddhists to associate themselves more closely with the Maurya Empire. However, only some of the Buddha's teachings were delivered in the historical territory of Magadha kingdom. Scholars consider it likely that he taught in several closely related dialects of Middle Indo-Aryan, which had a high degree of mutual intelligibility. Theravada tradition, as recorded in chronicles like the Mahavamsa, states that the Tipitaka was first committed to writing during the first century BCE. This move away from the previous tradition of oral preservation is described as being motivated by threats to the Sangha from famine, war, and the growing influence of the rival tradition of the Abhayagiri Vihara. This account is generally accepted by scholars, though there are indications that Pali had already begun to be recorded in writing by this date. By this point in its history, scholars consider it likely that Pali had already undergone some initial assimilation with Sanskrit, such as the conversion of the Middle-Indic bamhana to the more familiar Sanskrit