Sanskrit: संस्कृतम्) is a language of ancient India with a documented oral and later written history of over 3,000 years. It is the primary liturgical language of Hinduism; the predominant language of most works of Hindu philosophy as well as some of the principal texts of Buddhism and Jainism. Sanskrit, in its various variants and dialects, was the lingua franca of ancient and medieval India.