The Jain scholar Hemachandra (1088-1172) was patronized by Kumarapala, the Chalukya ruler of Gujarat (reigned 1143-1172). Hemachandra wrote extensively on Sanskrit and Prakrit grammar, lexicography, and Jain philosophy. His major works include the Siddha-Hema-Shabdanushasana (grammar) and the Dvyashraya Kavya (Chalukya history). Kumarapala's patronage enabled Hemachandra's scholarly productivity.