Place the rice in a fine-mesh strainer and rinse it under cold running water until the water becomes mostly clear. This removes excess surface starch and helps produce separate, fluffy grains. Drain thoroughly before cooking.
Heat the olive oil or butter in a medium saucepan over medium heat. Add the chopped onion and cook for approximately 3–4 minutes until softened. Stir in the minced garlic and cook for another 30 seconds, taking care not to burn it.
Sprinkle in the turmeric, ground cumin, black pepper, and salt. Stir for about 20–30 seconds to distribute the spices evenly through the onion and garlic mixture. This brief step helps release their aroma.
Add the drained rice to the saucepan. Stir gently for 1–2 minutes until the grains are coated with the seasoned oil. Toasting the rice lightly helps build flavor and gives the finished dish a pleasant texture.
Add the vegetable or chicken broth and stir once to distribute the ingredients. If you are using peas and diced carrots, add them now. Bring the liquid to a gentle boil.
Reduce the heat to low and cover the saucepan with a tight-fitting lid. Cook for approximately 15–18 minutes, or until the liquid has been absorbed and the rice is tender. Cooking time may vary depending on the rice variety and saucepan.
Turn off the heat and leave the saucepan covered for 5–10 minutes. This resting period allows the moisture to distribute evenly and helps the rice finish steaming.
Remove the lid and gently fluff the rice with a fork. Add the chopped parsley or cilantro and lemon juice, if desired. Taste and adjust the seasoning before serving warm.