Soak the rice in cold water for 5 minutes, then repeat in fresh water. Repeat 3 times and drain the rice through a sieve. Set aside to drain until dry.
Heat the oil over medium heat in a large saucepan, and fry the onion with the whole spices until the onions begin to brown and soften. This should take around 10 minutes.
Add the garlic, coriander, and turmeric. Cook for 2 minutes while stirring continuously.
Add the rice and toast for 2-3 minutes while stirring continuously to evenly coat the rice in the spices.
Add the stock and salt to taste, and cover. Bring the rice to a boil, then reduce to a gentle simmer. Cook for 10-12 minutes until almost all the water has been absorbed. Remove from the heat and allow to stand, still covered, for 5-6 minutes.
Uncover the rice and fluff with a fork. Season to taste.
Serve finished with chopped coriander.