// โœ… COMPLETE INGREDIENT DATABASE AND ANALYZER FUNCTION window.ingredientsData = { "high fructose corn syrup": { "name": "High Fructose Corn Syrup", "category": "Sweetener", "concerns": ["Linked to obesity and insulin resistance", "Highly processed"], "alternatives": [{ "name": "Maple Syrup", "badges": ["Natural Sweetener", "Less Processed"], "link": "https://www.amazon.com/dp/B0000DIX7U?tag=emunabitajon4-20" }] }, "aspartame": { "name": "Aspartame", "category": "Sweetener", "concerns": ["Controversial neurological links", "Avoided by people with PKU"], "alternatives": [{ "name": "Stevia Drops", "badges": ["Zero-Calorie", "Plant-Based"], "link": "https://www.amazon.com/dp/B00O9YIVZG?tag=emunabitajon4-20" }] }, "xanthan gum": { "name": "Xanthan Gum", "category": "Thickener", "concerns": ["May cause gas or bloating in some individuals", "Highly processed bacterial fermentation"], "alternatives": [{ "name": "Arrowroot Powder", "badges": ["Whole Food Based", "Gluten-Free"], "link": "https://www.amazon.com/dp/B00G2XGC88?tag=emunabitajon4-20" }] }, "enzymes": { "name": "Enzymes", "category": "Processing Aid", "concerns": ["Can be derived from microbial, animal, or plant sources", "Kosher status depends on source and supervision"], "kosherSensitive": true, "alternatives": [] }, "sugar": { "name": "Sugar", "category": "Sweetener", "concerns": ["Overconsumption risk", "Metabolic concerns"], "alternatives": [{ "name": "Coconut Sugar", "badges": ["Lower glycemic"], "link": "https://www.amazon.com/dp/B00AHTVAPI?tag=emunabitajon4-20" }] }, "red 40": { "name": "Red 40 (Allura Red)", "category": "Colorant", "concerns": ["Linked to hyperactivity", "May trigger allergic reactions"], "alternatives": [{ "name": "ColorKitchen Red Dye", "badges": ["Plant-Based", "No Artificial Colors"], "link": "https://www.amazon.com/dp/B07C3JY51F?tag=emunabitajon4-20" }] }, "yellow 5": { "name": "Yellow 5 (Tartrazine)", "category": "Colorant", "concerns": ["May cause hives", "Linked to behavioral issues in children"], "alternatives": [{ "name": "Supernatural Yellow Food Colors", "badges": ["No Synthetic Dyes", "Kid-Safe"], "link": "https://www.amazon.com/dp/B07VC9J6G9?tag=emunabitajon4-20" }] }, "banana": { "name": "Banana/Plantain", "category": "Fruit Base", "concerns": ["High in sugar", "Ripens quickly", "May contain pesticides"], "alternatives": [{ "name": "Organic Banana", "badges": ["Pesticide-free", "Fair Trade"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "apple": { "name": "Apple", "category": "Fruit Base", "concerns": ["High in pesticides", "Waxed for preservation", "May be stored for months"], "alternatives": [{ "name": "Local Organic Apple", "badges": ["No wax", "Fresh"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "orange": { "name": "Orange", "category": "Fruit Base", "concerns": ["Treated with fungicides", "May have waxes", "High sugar content"], "alternatives": [{ "name": "Organic Orange", "badges": ["Chemical-free", "Natural"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "lemon": { "name": "Lemon", "category": "Fruit Base", "concerns": ["Pesticides in the peel", "May be waxed", "Variable price"], "alternatives": [{ "name": "Organic Lemon", "badges": ["No waxes", "Natural"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "avocado": { "name": "Avocado", "category": "Fruit Base", "concerns": ["Ripens irregularly", "High price", "Environmental impact"], "alternatives": [{ "name": "Local Seasonal Avocado", "badges": ["Sustainable", "Better price"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "mango": { "name": "Mango", "category": "Fruit Base", "concerns": ["High in sugar", "May contain pesticides", "Irregular ripening"], "alternatives": [{ "name": "Unsweetened Dried Mango", "badges": ["No added sugar", "Long shelf life"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "pineapple": { "name": "Pineapple", "category": "Fruit Base", "concerns": ["High acidity", "May irritate mouth", "Short shelf life"], "alternatives": [{ "name": "Organic Golden Pineapple", "badges": ["Less acidic", "No chemicals"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "papaya": { "name": "Papaya", "category": "Fruit Base", "concerns": ["Possible GMO", "Ripens very quickly", "Sensitive to transport"], "alternatives": [{ "name": "Small Organic Papaya", "badges": ["Non-GMO", "Practical size"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "grape": { "name": "Grape", "category": "Fruit Base", "concerns": ["High in pesticides", "High in sugar", "High price"], "alternatives": [{ "name": "Seasonal Organic Grapes", "badges": ["Pesticide-free", "Fresh"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "strawberry": { "name": "Strawberry", "category": "Fruit Base", "concerns": ["High in pesticides", "Very perishable", "Variable price"], "alternatives": [{ "name": "Local Organic Strawberries", "badges": ["Chemical-free", "Fresh"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "pear": { "name": "Pear", "category": "Fruit Base", "concerns": ["Waxed for preservation", "Irregular ripening", "May be stored for months"], "alternatives": [{ "name": "Seasonal Organic Pear", "badges": ["No waxes", "Natural"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "peach": { "name": "Peach", "category": "Fruit Base", "concerns": ["High in pesticides", "Delicate to transport", "Ripens quickly"], "alternatives": [{ "name": "Local Organic Peach", "badges": ["Pesticide-free", "Fresh"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "tangerine": { "name": "Tangerine", "category": "Fruit Base", "concerns": ["May have seeds", "Treated with fungicides", "Limited season"], "alternatives": [{ "name": "Organic Clementine Tangerine", "badges": ["Seedless", "Chemical-free"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "plum": { "name": "Plum", "category": "Fruit Base", "concerns": ["High in sugar", "Very perishable", "Variable price"], "alternatives": [{ "name": "Unsweetened Dried Plums", "badges": ["No added sugar", "Long shelf life"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "watermelon": { "name": "Watermelon", "category": "Fruit Base", "concerns": ["May contain pesticides", "Difficult to transport", "Takes up a lot of space"], "alternatives": [{ "name": "Organic Mini Watermelon", "badges": ["Practical size", "Chemical-free"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "tomato": { "name": "Tomato", "category": "Vegetable Base", "concerns": ["High in pesticides", "Irregular ripening", "Sensitive to transport"], "alternatives": [{ "name": "Organic Cherry Tomatoes", "badges": ["Pesticide-free", "Sweeter"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "onion": { "name": "Onion", "category": "Vegetable Base", "concerns": ["May contain pesticides", "Irritates eyes", "Absorbs chemicals from soil"], "alternatives": [{ "name": "Organic Sweet Onion", "badges": ["Less irritating", "Chemical-free"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "bell_pepper": { "name": "Bell Pepper", "category": "Vegetable Base", "concerns": ["High in pesticides", "May cause heartburn", "Variable price"], "alternatives": [{ "name": "Organic Bell Pepper", "badges": ["Pesticide-free", "More digestible"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "garlic": { "name": "Garlic", "category": "Vegetable Base", "concerns": ["Persistent odor", "May be imported from far away", "Treated for preservation"], "alternatives": [{ "name": "Local Organic Garlic", "badges": ["Chemical-free", "Fresh"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "chili_pepper": { "name": "Chili Pepper", "category": "Vegetable Base", "concerns": ["Variable heat", "May irritate", "Pesticides"], "alternatives": [{ "name": "Organic Mild Chili", "badges": ["Controlled heat", "Chemical-free"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "carrot": { "name": "Carrot", "category": "Vegetable Base", "concerns": ["May accumulate nitrates", "Treated for longer shelf life", "Possible GMO"], "alternatives": [{ "name": "Organic Baby Carrots", "badges": ["Non-GMO", "Sweeter"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "lettuce": { "name": "Lettuce", "category": "Vegetable Base", "concerns": ["High in pesticides", "Very perishable", "May contain bacteria"], "alternatives": [{ "name": "Organic Hydroponic Lettuce", "badges": ["Pesticide-free", "Cleaner"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "spinach": { "name": "Spinach", "category": "Vegetable Base", "concerns": ["High in oxalates", "Accumulates nitrates", "Very perishable"], "alternatives": [{ "name": "Organic Baby Spinach", "badges": ["More tender", "Chemical-free"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "broccoli": { "name": "Broccoli", "category": "Vegetable Base", "concerns": ["May have pesticides", "Deteriorates quickly", "May cause gas"], "alternatives": [{ "name": "Organic Baby Broccoli", "badges": ["More tender", "Chemical-free"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "cauliflower": { "name": "Cauliflower", "category": "Vegetable Base", "concerns": ["May yellow", "Sensitive to mold", "May cause gas"], "alternatives": [{ "name": "Organic Cauliflower", "badges": ["Pesticide-free", "Fresher"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "zucchini": { "name": "Zucchini", "category": "Vegetable Base", "concerns": ["Easily damaged", "Short shelf life", "May be GMO"], "alternatives": [{ "name": "Organic Baby Zucchini", "badges": ["Non-GMO", "Practical size"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "eggplant": { "name": "Eggplant", "category": "Vegetable Base", "concerns": ["Absorbs a lot of oil", "Can be bitter", "High in solanine"], "alternatives": [{ "name": "Organic Japanese Eggplant", "badges": ["Less bitter", "Chemical-free"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "celery": { "name": "Celery", "category": "Vegetable Base", "concerns": ["High in pesticides", "Fibrous", "Accumulates nitrates"], "alternatives": [{ "name": "Organic Celery", "badges": ["Pesticide-free", "More tender"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "cucumber": { "name": "Cucumber", "category": "Vegetable Base", "concerns": ["Waxed for preservation", "Can be bitter", "High in pesticides"], "alternatives": [{ "name": "Organic Persian Cucumber", "badges": ["No waxes", "Sweeter"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "cabbage": { "name": "Cabbage", "category": "Vegetable Base", "concerns": ["May cause gas", "Pesticides", "Variable shelf life"], "alternatives": [{ "name": "Organic Red Cabbage", "badges": ["More antioxidants", "Chemical-free"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "cilantro": { "name": "Cilantro", "category": "Herb and Spice", "concerns": ["Controversial flavor", "Very perishable", "High in pesticides"], "alternatives": [{ "name": "Hydroponic Organic Cilantro", "badges": ["Pesticide-free", "Fresher"], "link": "https://www.amazon.com/dp/B09NXYZ123?tag=emunabitajon4-20" }] }, "oregano": { "name": "Oregano", "category": "Herb and Spice", "concerns": ["May be adulterated", "Loses flavor quickly", "Uncertain origin"], "alternatives": [{ "name": "Fresh Organic Oregano", "badges": ["Certified", "More aromatic"], "link": "https://www.amazon.com/dp/B08THXY456?tag=emunabitajon4-20" }] }, "cumin": { "name": "Cumin", "category": "Herb and Spice", "concerns": ["May be ground with fillers", "Strong flavor", "Variable quality"], "alternatives": [{ "name": "Organic Whole Cumin Seeds", "badges": ["Pure", "More aromatic"], "link": "https://www.amazon.com/dp/B07PQRS789?tag=emunabitajon4-20" }] }, "cinnamon": { "name": "Cinnamon", "category": "Herb and Spice", "concerns": ["May be fake cinnamon", "High in coumarins", "Inconsistent quality"], "alternatives": [{ "name": "Organic Ceylon Cinnamon", "badges": ["True cinnamon", "Better quality"], "link": "https://www.amazon.com/dp/B08WXYZ987?tag=emunabitajon4-20" }] }, "black_pepper": { "name": "Black Pepper", "category": "Herb and Spice", "concerns": ["May be adulterated", "Loses aroma", "Dubious origin"], "alternatives": [{ "name": "Organic Whole Black Peppercorns", "badges": ["Pure", "More aromatic"], "link": "https://www.amazon.com/dp/B09ABCD123?tag=emunabitajon4-20" }] }, "basil": { "name": "Basil", "category": "Herb and Spice", "concerns": ["Very perishable", "Loses flavor when dried", "Sensitive to cold"], "alternatives": [{ "name": "Fresh Hydroponic Basil", "badges": ["Longer lasting", "Aromatic"], "link": "https://www.amazon.com/dp/B08DEFG456?tag=emunabitajon4-20" }] }, "thyme": { "name": "Thyme", "category": "Herb and Spice", "concerns": ["Hard to clean", "Tough stems", "Loses aroma quickly"], "alternatives": [{ "name": "Fresh Organic Thyme", "badges": ["No stems", "More aromatic"], "link": "https://www.amazon.com/dp/B07HIJK789?tag=emunabitajon4-20" }] }, "rosemary": { "name": "Rosemary", "category": "Herb and Spice", "concerns": ["Very intense flavor", "Woody stems", "Can be very dry"], "alternatives": [{ "name": "Fresh Organic Rosemary", "badges": ["Mild", "Aromatic"], "link": "https://www.amazon.com/dp/B08LMNO456?tag=emunabitajon4-20" }] }, "curry_powder": { "name": "Curry Powder", "category": "Herb and Spice", "concerns": ["Non-standardized blend", "May contain colorants", "Variable quality"], "alternatives": [{ "name": "Premium Organic Curry", "badges": ["No additives", "Authentic"], "link": "https://www.amazon.com/dp/B07PQRS123?tag=emunabitajon4-20" }] }, "ginger_powder": { "name": "Ginger Powder", "category": "Herb and Spice", "concerns": ["May be irradiated", "Loses potency", "Uncertain origin"], "alternatives": [{ "name": "Fresh Ground Organic Ginger", "badges": ["Not irradiated", "Potent"], "link": "https://www.amazon.com/dp/B08TUVW789?tag=emunabitajon4-20" }] }, "turmeric": { "name": "Turmeric", "category": "Herb and Spice", "concerns": ["May contain lead", "Stains easily", "Common adulteration"], "alternatives": [{ "name": "Certified Organic Turmeric", "badges": ["Pure", "Certified"], "link": "https://www.amazon.com/dp/B09XYZ789?tag=emunabitajon4-20" }] }, "peanut": { "name": "Peanut", "category": "Nut and Seed Base", "concerns": ["Aflatoxin risk", "High in calories", "Common allergen"], "alternatives": [{ "name": "Raw Organic Peanuts", "badges": ["No salt", "Certified"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "walnut": { "name": "Walnut", "category": "Nut and Seed Base", "concerns": ["Goes rancid easily", "High price", "May have shells"], "alternatives": [{ "name": "Organic California Walnuts", "badges": ["Shell-free", "Fresh"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "almond": { "name": "Almond", "category": "Nut and Seed Base", "concerns": ["High water consumption", "High price", "May be pasteurized"], "alternatives": [{ "name": "Raw Organic Almonds", "badges": ["Unprocessed", "Sustainable"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "pumpkin_seed": { "name": "Pumpkin Seed", "category": "Nut and Seed Base", "concerns": ["May have shells", "Goes rancid", "Uncertain origin"], "alternatives": [{ "name": "Organic Shelled Pumpkin Seeds", "badges": ["Peeled", "Fresh"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "chia_seed": { "name": "Chia Seed", "category": "Nut and Seed Base", "concerns": ["May be contaminated", "Absorbs pesticides", "Variable quality"], "alternatives": [{ "name": "Certified Organic Chia Seeds", "badges": ["Certified", "Premium"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "brazil_nut": { "name": "Brazil Nut", "category": "Nut and Seed Base", "concerns": ["High selenium content", "Quick rancidity", "High price"], "alternatives": [{ "name": "Organic Brazil Nuts", "badges": ["Fresh", "Sustainable"], "link": "https://www.amazon.com/dp/B09HIJK789?tag=emunabitajon4-20" }] }, "pistachio": { "name": "Pistachio", "category": "Nut and Seed Base", "concerns": ["High in sodium", "Hard shells", "Premium price"], "alternatives": [{ "name": "Raw Unsalted Pistachios", "badges": ["Low sodium", "Natural"], "link": "https://www.amazon.com/dp/B08LMNO456?tag=emunabitajon4-20" }] }, "sunflower_seed": { "name": "Sunflower Seed", "category": "Nut and Seed Base", "concerns": ["High in fat", "May have shells", "Inconsistent quality"], "alternatives": [{ "name": "Organic Shelled Sunflower Seeds", "badges": ["No shell", "Certified"], "link": "https://www.amazon.com/dp/B07PQRS123?tag=emunabitajon4-20" }] }, "flaxseed": { "name": "Flaxseed", "category": "Nut and Seed Base", "concerns": ["Difficult to digest whole", "Goes rancid quickly", "Absorbs toxins"], "alternatives": [{ "name": "Organic Ground Golden Flaxseed", "badges": ["More digestible", "Fresh"], "link": "https://www.amazon.com/dp/B08TUVW789?tag=emunabitajon4-20" }] }, "macadamia": { "name": "Macadamia", "category": "Nut and Seed Base", "concerns": ["Very high in calories", "Very high price", "Quick rancidity"], "alternatives": [{ "name": "Raw Organic Macadamia Nuts", "badges": ["No salt", "Premium"], "link": "https://www.amazon.com/dp/B09XYZ789?tag=emunabitajon4-20" }] }, "sesame_seed": { "name": "Sesame Seed", "category": "Nut and Seed Base", "concerns": ["Common allergen", "Small seeds", "Burns easily"], "alternatives": [{ "name": "Organic Toasted Sesame Seeds", "badges": ["Perfectly toasted", "Organic"], "link": "https://www.amazon.com/dp/B08ABC456?tag=emunabitajon4-20" }] }, "pecan": { "name": "Pecan", "category": "Nut and Seed Base", "concerns": ["Very caloric", "Sensitive to humidity", "High price"], "alternatives": [{ "name": "Organic Pecan Halves", "badges": ["No shell", "Premium"], "link": "https://www.amazon.com/dp/B07DEF123?tag=emunabitajon4-20" }] }, "white_potato": { "name": "White Potato", "category": "Tuber Base", "concerns": ["May contain solanine", "High glycemic index", "Often treated with sprout inhibitors"], "alternatives": [{ "name": "Red Potato", "badges": ["Lower glycemic index", "Less starchy"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "sweet_potato": { "name": "Sweet Potato", "category": "Tuber Base", "concerns": ["Variable sugar content", "May have pesticides", "Skin can be tough"], "alternatives": [{ "name": "Organic Japanese Purple Sweet Potato", "badges": ["Higher antioxidants", "Chemical-free"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "cassava": { "name": "Cassava/Yuca", "category": "Tuber Base", "concerns": ["Contains cyanogenic compounds if not properly prepared", "Long cooking time", "Hard to peel"], "alternatives": [{ "name": "Pre-cooked Cassava", "badges": ["Ready to use", "Safer"], "link": "https://www.amazon.com/dp/B07NDNX7NH?tag=emunabitajon4-20" }] }, "yellow_potato": { "name": "Yellow Potato", "category": "Tuber Base", "concerns": ["May be imported", "Higher price", "Variable availability"], "alternatives": [{ "name": "Organic Yellow Potato", "badges": ["Chemical-free", "Better flavor"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "yam": { "name": "Yam", "category": "Tuber Base", "concerns": ["Difficult to peel", "Long cooking time", "Can oxidize quickly"], "alternatives": [{ "name": "Pre-cooked Yam", "badges": ["Ready to use", "Preserves nutrients"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "black_potato": { "name": "Andean Black Potato", "category": "Tuber Base", "concerns": ["Hard to find", "High price", "May contain solanine"], "alternatives": [{ "name": "Purple Potato", "badges": ["Rich in antioxidants", "More accessible"], "link": "https://www.amazon.com/dp/B08KH4CMXH?tag=emunabitajon4-20" }] }, "native_potato": { "name": "Native Potato (Huayro)", "category": "Tuber Base", "concerns": ["Limited availability", "Sensitive to storage", "High price"], "alternatives": [{ "name": "Creole Potato", "badges": ["Similar flavor", "More resilient"], "link": "https://www.amazon.com/dp/B07H2VRDRT?tag=emunabitajon4-20" }] }, "pink_potato": { "name": "Pink Potato", "category": "Tuber Base", "concerns": ["Delicate skin", "Oxidizes quickly", "Sensitive to bruising"], "alternatives": [{ "name": "Red Potato", "badges": ["More resilient", "High in antioxidants"], "link": "https://www.amazon.com/dp/B074H6X6K9?tag=emunabitajon4-20" }] }, "peruvian_potato": { "name": "Peruvian Potato (Canchan)", "category": "Tuber Base", "concerns": ["Imported", "High price", "Short shelf life"], "alternatives": [{ "name": "Local Yellow Potato", "badges": ["Fresher", "Better price"], "link": "https://www.amazon.com/dp/B07Y8RJXPH?tag=emunabitajon4-20" }] }, "purple_potato": { "name": "Purple Potato", "category": "Tuber Base", "concerns": ["Stains other foods", "Changes color when cooked", "Premium price"], "alternatives": [{ "name": "Blue Potato", "badges": ["More stable color", "Rich in anthocyanins"], "link": "https://www.amazon.com/dp/B08L7PNXY4?tag=emunabitajon4-20" }] }, "sodium_benzoate": { "name": "Sodium Benzoate", "category": "Preservative", "concerns": ["May form benzene when combined with vitamin C", "Linked to hyperactivity in children", "Common allergen for some individuals"], "alternatives": [{ "name": "Natural Citric Acid", "badges": ["Plant-derived", "Less allergenic"], "link": "https://www.amazon.com/dp/B07CWQ3T9L?tag=emunabitajon4-20" }] }, "sodium_nitrite": { "name": "Sodium Nitrite", "category": "Preservative", "concerns": ["Forms nitrosamines when heated", "Linked to increased cancer risk", "Used in processed meats"], "alternatives": [{ "name": "Celery Powder Extract", "badges": ["Natural alternative", "No synthetic nitrites"], "link": "https://www.amazon.com/dp/B08KHTV7LM?tag=emunabitajon4-20" }] }, "calcium_propionate": { "name": "Calcium Propionate", "category": "Preservative", "concerns": ["May cause migraines in sensitive individuals", "Common in bread products", "Linked to behavioral changes"], "alternatives": [{ "name": "Cultured Wheat Flour", "badges": ["Clean label", "Natural preservation"], "link": "https://www.amazon.com/dp/B07WVTB4JN?tag=emunabitajon4-20" }] }, "potassium_sorbate": { "name": "Potassium Sorbate", "category": "Preservative", "concerns": ["May cause skin irritation", "Common in wine and dairy products", "Synthetic antimicrobial"], "alternatives": [{ "name": "Fermented Extract", "badges": ["Natural preservative", "Clean label"], "link": "https://www.amazon.com/dp/B07XFTS4YL?tag=emunabitajon4-20" }] }, "sulfur_dioxide": { "name": "Sulfur Dioxide (E220)", "category": "Preservative", "concerns": ["Asthma trigger", "Common in dried fruits and wine", "May destroy vitamin B1"], "alternatives": [{ "name": "Ascorbic Acid", "badges": ["Vitamin C based", "No sulfites"], "link": "https://www.amazon.com/dp/B07DPRV8ZK?tag=emunabitajon4-20" }] }, "monosodium_glutamate": { "name": "Monosodium Glutamate (MSG)", "category": "Flavor Enhancer", "concerns": ["May cause headaches in sensitive individuals", "Excitotoxin concerns", "Often hidden under different names"], "alternatives": [{ "name": "Nutritional Yeast", "badges": ["Natural umami", "B-vitamin rich"], "link": "https://www.amazon.com/dp/B074H7QSKS?tag=emunabitajon4-20" }] }, "disodium_inosinate": { "name": "Disodium Inosinate (E631)", "category": "Flavor Enhancer", "concerns": ["Often used with MSG", "May contain animal products", "Not suitable for vegetarians"], "alternatives": [{ "name": "Mushroom Extract Powder", "badges": ["Plant-based", "Natural umami"], "link": "https://www.amazon.com/dp/B07WDMZ4V3?tag=emunabitajon4-20" }] }, "disodium_guanylate": { "name": "Disodium Guanylate (E627)", "category": "Flavor Enhancer", "concerns": ["Often derived from fish", "Used in instant noodles and snacks", "May trigger gout in susceptible individuals"], "alternatives": [{ "name": "Seaweed Extract", "badges": ["Natural flavor enhancer", "Mineral-rich"], "link": "https://www.amazon.com/dp/B07VHKXPFG?tag=emunabitajon4-20" }] }, "carrageenan": { "name": "Carrageenan", "category": "Stabilizer", "concerns": ["Linked to digestive inflammation", "Common in plant-based milks", "Derived from seaweed but highly processed"], "alternatives": [{ "name": "Guar Gum", "badges": ["Less inflammatory", "Plant-based"], "link": "https://www.amazon.com/dp/B00IZDIMLS?tag=emunabitajon4-20" }] }, "polysorbate_80": { "name": "Polysorbate 80 (E433)", "category": "Emulsifier", "concerns": ["May disrupt gut barrier", "Linked to metabolic changes in animal studies", "Common in ice cream"], "alternatives": [{ "name": "Sunflower Lecithin", "badges": ["Non-GMO", "Soy-free"], "link": "https://www.amazon.com/dp/B01M0QJY75?tag=emunabitajon4-20" }] }, "carboxymethylcellulose": { "name": "Carboxymethylcellulose (CMC)", "category": "Stabilizer", "concerns": ["May alter gut microbiome", "Common in gluten-free products", "Highly processed"], "alternatives": [{ "name": "Psyllium Husk", "badges": ["Natural fiber", "Prebiotic"], "link": "https://www.amazon.com/dp/B07D6BVPXL?tag=emunabitajon4-20" }] }, "mono_diglycerides": { "name": "Mono and Diglycerides", "category": "Emulsifier", "concerns": ["May contain trans fats", "Often derived from palm oil", "May be animal-derived"], "alternatives": [{ "name": "Organic Soy Lecithin", "badges": ["Plant-based", "Non-GMO"], "link": "https://www.amazon.com/dp/B01GVQAKC8?tag=emunabitajon4-20" }] }, "sucralose": { "name": "Sucralose (Splenda)", "category": "Artificial Sweetener", "concerns": ["May alter gut bacteria", "Heat unstable when cooking", "600 times sweeter than sugar"], "alternatives": [{ "name": "Monk Fruit Extract", "badges": ["Natural sweetener", "Zero glycemic impact"], "link": "https://www.amazon.com/dp/B07WXRD3N3?tag=emunabitajon4-20" }] }, "acesulfame_potassium": { "name": "Acesulfame Potassium (Ace-K)", "category": "Artificial Sweetener", "concerns": ["Contains methylene chloride", "Limited long-term studies", "Often combined with other sweeteners"], "alternatives": [{ "name": "Stevia Leaf Extract", "badges": ["Plant-based", "No aftertaste blend"], "link": "https://www.amazon.com/dp/B07MCVTG9L?tag=emunabitajon4-20" }] }, "neotame": { "name": "Neotame", "category": "Artificial Sweetener", "concerns": ["Related to aspartame", "7,000-13,000 times sweeter than sugar", "Limited independent research"], "alternatives": [{ "name": "Allulose", "badges": ["Natural rare sugar", "Caramelizes like sugar"], "link": "https://www.amazon.com/dp/B07MCVTG9L?tag=emunabitajon4-20" }] } }; const fuse = new Fuse(Object.keys(window.ingredientsData), { includeScore: true, threshold: 0.4 }); function analyzeIngredient() { const input = document.getElementById("ingredientInput").value.toLowerCase(); const resultDiv = document.getElementById("result"); resultDiv.innerHTML = ""; const data = window.ingredientsData; const terms = input.split(',').map(t => t.trim()).filter(Boolean); terms.forEach(term => { let matchKey = null; let matchType = ""; if (data[term]) { matchKey = term; matchType = "Direct Match"; } else { const fuzzy = fuse.search(term); if (fuzzy.length > 0 && fuzzy[0].score <= 0.4) { matchKey = fuzzy[0].item; matchType = "Fuzzy Match"; } } if (!matchKey) { resultDiv.innerHTML += `
โŒ Ingredient not found: ${term}
`; return; } const ing = data[matchKey]; const concerns = ing.concerns.map(c => `
  • โš ๏ธ ${c}
  • `).join(''); const alternatives = ing.alternatives.length ? ing.alternatives.map(a => `
  • ${a.name} (${a.badges.join(", ")})
  • `).join('') : '

    No alternatives listed.

    '; resultDiv.innerHTML += `

    ${ing.name} [${ing.category}]

    Suggested Alternatives:
    `; }); } // Optional UX: Autocomplete logic (attach to input) document.getElementById("ingredientInput").addEventListener("input", function() { const list = Object.keys(window.ingredientsData); const val = this.value.toLowerCase(); const matches = list.filter(k => k.includes(val)).slice(0, 5); if (matches.length && val.length > 2) { this.setAttribute("title", `Suggestions: ${matches.join(", ")}`); } else { this.removeAttribute("title"); } }); // Function to get category icons function getIngredientIcon(category) { const icons = { 'Sweetener': '๐Ÿฎ', 'Thickener': '๐Ÿงช', 'Processing Aid': '๐Ÿงช', 'Colorant': '๐ŸŽจ', 'Fruit Base': '๐ŸŽ', 'Vegetable Base': '๐Ÿฅฌ', 'Herb and Spice': '๐ŸŒฟ', 'Nut and Seed Base': '๐Ÿฅœ', 'Tuber Base': '๐Ÿฅ”', 'Preservative': '๐Ÿšซ', 'Flavor Enhancer': '๐Ÿง‚', 'Stabilizer': '๐Ÿงฌ', 'Emulsifier': '๐Ÿ’ง', 'Artificial Sweetener': '๐Ÿฎ' }; return icons[category] || '๐Ÿงช'; }