<<

NAME

ProductOpener::NutritionEstimation - estimate nutrition facts from the list of ingredients of a product

DESCRIPTION

This module uses nutritional databases such as CIQUAL to estimate the nutrients of a product, using its list of ingredients.

FUNCTIONS

estimate_nutrients_from_ingredients($ingredients_ref)

Estimate nutrition facts from a structured list of ingredients (of a product or a recipe) with percentages.

In its current form, this function only looks at top level ingredients, and does not take into account nested sub ingredients.

<<