First, prepare the rice.
Rinse the basmati rice under cold water until it runs clear.
In a heavy saucepan, bring the water to a boil.
Stir in the rinsed rice, reduce the heat to a low simmer, cover, and cook for 20-25 minutes until tender and all water is absorbed.
Remove from heat and let it sit, covered, for 5 minutes.
Transfer the cooked rice to a large bowl and allow it to cool to room temperature.
Once cooled, gently fold in the plain yogurt, salt, ground ginger, black pepper, and shredded mango (or cucumber/carrot) until everything is well combined.
Now, prepare the tempering (tadka).
Heat the ghee or sesame oil in a small pan over medium heat.
Once hot, add the urad dal and mustard seeds.
Fry until the dal turns golden brown and the mustard seeds begin to pop and sputter.
Add the curry leaves to the pan for the last 5 seconds of frying—be careful as they will crackle. Immediately pour this hot tempering over the yogurt rice mixture and mix gently to incorporate.
Chill the yogurt rice for at least 30 minutes if you prefer it cold, or serve immediately at room temperature.
Garnish with fresh coriander or parsley before serving.
Don't add the tempering when it's scorching hot, as this can cause the yogurt to split.
Let it cool for just a moment before pouring it over the rice.