Function Repository Resource:

BlendSpices

Source Notebook

Create complementary spice blends interactively

Contributed by: Gay Wilson

ResourceFunction["BlendSpices"][]

gives dropdown lists to select categories and spices, then produces a corresponding table and pie chart.

Details

A good spice blend can enhance the depth and complexity of your flavors in cooking. It's easy and rewarding to create your own personalized blends.
Spices can be classified into five categories: grounding, warming, herbal, sour and spicy.
When evaluated, ResourceFunction["BlendSpices"][] displays the first spice listed alphabetically in each category.
For a flavorful blend, culinary specialists recommend selecting two spices from one category and one spice from a different category for contrast. For example, pair grounding spices like cumin and coriander with a fiery chile pepper to add heat, or mix warming cinnamon and ground ginger with sour lemon zest to brighten the flavor of your dish.
Your selected spice blend is displayed as a table and in a color-coded pie chart.
The Flavor Profile is updated automatically when you select a new category.
The "Print spice list" button puts a list of the currently selected spices in a new cell, which you can copy and use in an LLM recipe function, such as LLMResourceFunction["RecipeSuggest"].
The "Create recipe" button creates a recipe for you that features the spices you selected.
One can use the "RecipeSuggest" LLM resource function for a customized recipe. The first argument is the recipe name. The second argument contains the ingredients you want to exclude, the third is ingredients you want to include, and the fourth is any general instructions for the LLM.

Examples

Basic Examples (3) 

It is recommended to start with a smaller amount of the contrast spice than the two base spices (you can add more as you taste the dish while cooking):

In[1]:=
ResourceFunction["BlendSpices"][]
Out[1]=

Click the "Print spice list" button to get a list of the spices you have selected so it can be copied and used in LLM queries:

Or click the "Create recipe" button to go ahead and send the spices to the LLM for a recipe:

Neat Examples (3) 

For a Mediterranean-inspired blend, mix equal parts oregano and thyme with a little lemon zest to add a citrusy brightness:

In[2]:=
ResourceFunction["BlendSpices"][]
Out[575]=

Click to print the spice list in a new cell:

Use the "RecipeSuggest" LLM resource function to customize by providing the list of selected spices as the third argument:

In[576]:=
LLMResourceFunction[
  "RecipeSuggest"]["Grilled Salmon", {"Cilantro"}, {"Oregano", "Thyme",
   "Lemon zest"}, "I will be serving this recipe to four adults."]
Out[576]=

Requirements

Wolfram Language 13.0 (December 2021) or above

Version History

  • 1.0.1 – 18 March 2025
  • 1.0.0 – 13 January 2025

Related Resources

License Information