Heat the oil in a saucepan over medium heat. Stir in the shallots and garlic, cook until slightly softened. Mix in rice, turmeric, cumin, salt and pepper. Cook stirring 1-2 minutes until spices are fragrant and rice is lightly toasted.
Stir in the broth, bring to a low simmer and continue cooking for 5 minutes. Add the sweet potatoes and continue simmering covered until all the liquid has been absorbed, about 15 minutes. Remove from heat and let stand 5 minutes.
Gently fluff with a fork, stir in pecans and basil and serve.