Kavirajamarga (Kannada: ಕವಿರಾಜಮಾರ್ಗ) (850 C.E.) is the earliest available work on rhetoric, poetics and grammar in the Kannada language. It was written by the famous Rashtrakuta King "Nrupatunga" Amoghavarsha I, and some historians claim it is based partly on an earlier Sanskrit writing called Kavyadarsa. Some historians believe Kavirajamarga may have been co-authored by a poet in the king's court, the Kannada language theorist Sri Vijaya.
The name literally means "Royal Path for Poets" and was written as a guide book for poets and scholars (Kavishiksha). From references made in this writing to earlier Kannada poetry and literature it is clear that a considerable body of work in prose and poetry must have existed in the preceding centuries.
The pre-coronation name of Amoghavarsha I was Sharva. He was born in Sribhavan in 800 to Rashtrakuta King Govinda III during the king's return from his successful northern campaigns in Kanauj. This is known from the Manne records (803), Sirur plates and Sanjan records (871) of Amoghavarsha I. Amoghavarsha I came to the throne in 814 at the age of 14 and took great interest in the Kannada language, culture, country and its people, and his writing Kavirajamarga goes into these details as well. The work describes the entire region between the Godavari river in the north and Kaveri river in the south as "Kannada country", which includes large territories north of modern Karnataka where Kannada is now not spoken. An English translation of a quote from the writing goes as follows,
In all the circle of earth
No fairer land you'll find
Than that were rich sweet Kannada
Voices the people's mind
'Twixt sacred river twain it lies-
From famed Godavari
To where the pilgrim rests his eyes
Only holy Kaveri...
The people of that land are skilled
To speak in rhythmic tone,
And quick to grasp a poet's thought,
So kindred to their own
Not students only, but the folk
untutored in the school,
By instinct use and understand
The strict poetic rules.