Place the ginger, curry paste and chicken thighs in a bowl.
Mix well and let marinate in the refrigerator for about an hour (overnight is OK too).
Place the oil in a large sauce pan over medium heat.
Add the cardamom, anise, and cinnamon.
Cook for about 3 minutes, stirring continuously.
Add the onion and cook for about 5 minutes, stirring occasionally.
Add the marinated chicken and cook, stirring frequently, for about 5 minutes.
Add the fish sauce, coconut milk, water, and vegetable stock.
Stir and cook over low heat for 30 minutes.
Add the potato, tamarind paste, brown sugar, and peanuts.
Cook for 30 to 40 minutes, stirring occasionally.
While the curry is cooking, place a medium sauce pan over high heat. When the water boils, stir in the brown rice.
Reduce heat to medium-low and simmer, partially covered, for about 30-40 minutes.
Do not boil away all of the liquid and do not stir the rice.
When a very small amount of liquid remains, remove the pan from the burner and let it stand, covered, for 5 minutes before serving.
When the potatoes are tender, serve the curry over rice, with the basil sprinkled over the top.
