Wash and soak rice in water for almost half an hour before cooking.
Heat oil in a saucepan over medium-high heat. Add onion and cook until soft, about 3 minutes. Stir in garlic, ginger, and chili, and cook for 30 seconds.
Add cumin seeds, star anise, bay leaf, and salt.
Stir in the peas, and 1/4 cup water, and let to cook for a minute, stirring constantly.
Add rice and remaining water. Bring to a boil, cover the saucepan and reduce the heat to a simmer and cook until the rice is tender and the water has evaporated. For brown basmati rice, it will take about 50 minutes.