ruby - Parse a recipe and determine if gluten free -


i have been assigned application user types in ingredients recipe , try , figure out things if recipe vegan, vegetarian, or gluten free. i'm trying figure out how determine how recipe gluten free.

say have following ingredients typed in:

2 tbsp olive oil 2 large onion, chopped 4 large garlic cloves, minced 2 large carrots, peeled , sliced 1/3 cup of raw white rice  2 pounds ground beef 3/4 cup of chopped fresh mint leaves 

how can programmatically determine if recipe gluten free. defining list of gluten-containing foods, , checking if ingredients typed in don't match, efficient way?


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -