During a large period of the first millennium, literary Prakrit was the preferred language for the fictional romance in India. Its use as a language of systematic knowledge was limited, because of Sanskrit's dominance in this area, but nevertheless, Prakrit texts exist on topics such as grammar, lexicography, metrics, alchemy, medicine, divination, and gemology. In addition, the Jains used Prakrit for religious literature, including commentaries on the Jain canonical literature, stories about Jain figures, moral stories, hymns and expositions of Jain doctrine. Prakrit is also the language of some Shaiva "tantras" and Vaishnava hymns.