Pali (also P??i) is a Middle Indo-Aryan language that is in the Prakrit language group and was indigenous to the Indian subcontinent. It is a dead language that is widely studied because it is the language of many of the earliest extant Buddhist scriptures as collected in the P??i Canon, or Tipitaka, and it is the liturgical language of Theravada Buddhism.
Pali is a literary language of the Prakrit language family and was first written down in Sri Lanka in the first century BCE. Despite scholarship on this problem, there is persistent confusion as to the relation of P??i to the vernacular spoken in the ancient kingdom of Magadha, which was located around modern-day Bih?r.
P?li, as a Middle Indo-Aryan language, is different from Sanskrit, not only with regard to the time of its origin but as to its dialectal base since a number of its morphological and lexical features betray the fact that it is not a direct continuation of ?gvedic Vedic Sanskrit; rather it descends from a dialect or number of dialects that were, despite many similarities, different from ?gvedic.