Wash the rice properly and soak it with clean water for half an hour.Then drain it from water and keep the rice aside.Take a pan, put some oil into it and heat it on the stove. Then put cardemom into oil.After 1 minutes frying, put chopped onions and 5-6 pieces of green chillies into it and fry untill onions turn lite brown in colour.