1. Heat oil for spice paste and add all ingredients except shallots and coconut
2. Fry till spices are fragrant and the lentils turn a golden brown
3. Turn off heat and add sliced shallots and coconut. Mix and let them sit in the heat of the pan
4. Cool this mixture completely and grind into a smooth paste with enough water and salt
5. Soak tamarind in 1.5 cups warm water and extract juice. Discard pulp.
6. Wash the brinjal and make criss-cross cuts into it from the base almost up to the stalks
7. Stuff the brinjal with spice paste and set aside
8. Heat sesame oil for tempering in a large pan and add the mustard seeds, red chilly, and curry leaves
9. When the mustard seeds pop, add the brinjal one by one and lower heat. Turn them over every few minutes till cooked through and semi-soft
10. To this, add the remaining spice paste and jaggery along with the tamarind juice and some water to desired consistency
11. Simmer until the oil floats to the top. Add more salt as needed.