Contar Proteínas

This website came from an idea of another of my brothers. He did amateur bodybuilding and was fed up with always eating the same thing: rice with chicken and broccoli. So we came up with the idea of finding recipes with the same nutritional values that would add some variety to the diet.

We did it by scraping recipe websites and running a linguistic analysis with an AI that could extract each recipe’s ingredients along with their quantities. Ingredient extraction relied on a food database enriched with synonyms.

Detecting the quantities was much harder, because recipes use lots of different expressions, for example:

  • A teaspoon.
  • A handful.
  • A little.
  • A splash.

Each expression was assigned a specific amount in grams, and patterns were extracted with regular expressions. We built an admin panel to train the algorithm and add missing expressions over time.

Contar Proteínas website