Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ingredient Index #35

Open
youainti opened this issue Nov 13, 2024 · 1 comment
Open

Feature Request: Ingredient Index #35

youainti opened this issue Nov 13, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@youainti
Copy link

I was demonstrating chef to my wife, and she said something to the effect of: "What I really need is a way to look up recipes by their ingredients, so that I can choose what recipe to make based on the ingredients that I have."

I've written a basic indexer with the help of Claude.ai, which is available here, but my rust skills are pretty limited, so I'm not confident in my ability to integrate it into the main program.

If this is something you are interested in, go ahead and use it, no offense if it doesn't match your plans.

@Zheoni
Copy link
Owner

Zheoni commented Nov 14, 2024

Hello, thanks for taking the time. I know search in chef is very basic right now. The search by ingredient is something I wanted to implement originally but didn't do it because it creates another problem that needs to be solved or it can give limited results.

When we write a recipe in cooklang we integrate the ingredients in the recipe. For example two recipes may can for tomatoes:

Add @tomatoes{3}
Add a @tomato

Both recipes call for tomatoes, but the word for the ingredient is different. This is just and example and for other ingredients there are variants that are more than just the plural. So when you search for recipes with "tomato" the "tomatoes" one won't show up with a naive implementation.

My preferred way to solve this is to have another file that link or groups the ingredients. There is already a file in the cooklang spec that does a similar thing but only to create a shopping list. The cooklang language is working towards a new version and I think is the right time to address this issue (thanks for reminding me now) I think about how to do it and make a proposal.

@Zheoni Zheoni added the enhancement New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants