Why it works: Chocolate and vanilla are a kitchen classic. They rank in the top 5% of all ingredient pairs, and cooks put them together in 10,020 recipes. Both carry sotolon, which smells curry, maple. The science ↓
Chocolate Cookies
Ingredients
Directions
The book says “a moderate oven”. The 350°F (175°C) in the steps is the modern equivalent, not the book's own figure.
Prepare
Preheat the oven to 350°F (175°C).
Make and shape the dough
In a bowl, cream together the butter and sugar.
Add the eggs, melted chocolate and vanilla, and mix well.
Stir in the chopped walnuts and flour until combined.
Spread the mixture on a flat tin and cut into squares.
Place half a walnut on top of each square.
Bake
Bake for about 10 minutes.
Transcribed from a scanned cookbook and modernised for today's kitchens. Where the book gave no heat or time, or said "a moderate oven", the temperatures and times here may be modern equivalents rather than the book's own figures.
Photo for illustrative purposes only · Contact us to use it
Explore the science
The flavor team
The pairs that carry this dish. Each one is judged two ways: how much their aromas overlap, and how often cooks already put them together.
-
Chocolate + vanillatop 5% of all pairsSmell alikemoderateCooked together10,020 recipes
Shared aroma: sotolon (curry, maple).
-
Sugar + vanillatop 8% of all pairsSmell alikelowCooked together35,032 recipes
Shared aroma: beta-damascenone (apple, rose).
-
Vanilla + walnuttop 10% of all pairsSmell alikestrongCooked together2,730 recipes
Shared aroma: eucalyptol (eucalyptus, herbal).
-
Chocolate + walnuttop 10% of all pairsSmell alikemoderateCooked together1,548 recipes
Shared aroma: 3-ethyl-2,5-dimethylpyrazine (roasted, nutty).
-
Butter + flourtop 12% of all pairsSmell alikelowCooked together124,287 recipes
Shared aroma: isobutyraldehyde (malty, green).
Sugar and vanilla barely smell alike, yet cooks put them together in 35,032 recipes: they work on texture and structure more than aroma.
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- Butter
- Creams with sugar to give the cookies a tender, rich texture.
- Sugar
- Creaming with butter adds sweetness and helps give structure and browning.
- Eggs
- Bind the mixture and add structure as they set in the oven.
- Sweet chocolate
- Provides the main chocolate flavour and sweetness in the cookies.
- Flour
- Provides structure that holds the squares together as they bake.
The step that matters
Baking time. Ten minutes is a short bake, and cookies continue to firm as they cool. Pulling them once the edges are set and the centres look just barely dry helps keep them soft rather than hard and dry.
Swap the walnut
How well each one fits the dish's main ingredients (butter, sugar, egg, chocolate, vanilla, flour):
- Almondfits better
- Hazelnutfits better
- Macadamia nutfits better
- Walnutthe original
Fit is the average pairing score against butter, sugar, egg, chocolate, vanilla, flour. Candidates are from the same food group and used in at least 100 recipes.
“What each ingredient does” and “The step that matters” were written by Claude from this recipe’s own method and reviewed in samples by CompKitchen.
You might also like
The free Flavor Lab newsletter: one surprising pairing a week and the molecular reason it works, in 60 seconds. No spam, unsubscribe anytime.
Prefer an account? Create a free account to save pairings and unlock the full chemistry.

Chocolate Cream171 recipes
Vanilla Ice Cream108 recipes
Chocolate Fudge55 recipes
Chocolate Drop Cookies50 recipes