q-m / food-ingredient-parser-ruby

Extract the structure of ingredient lists on food products
MIT License
16 stars 2 forks source link

part after bracketed text with 'and' dropped #22

Closed wvengen closed 10 months ago

wvengen commented 10 months ago

In this ingredient declaration:

Wheat Flour [with Calcium, Iron, Niacin (B3) and Thiamin (B1)] and Wholemeal Wheat Flour, Water, Yeast, Vegetable Oils (Sunflower, Rapeseed and Sustainable Palm in varying proportions), Salt, Wheat Gluten, Malted Barley Flour, Emulsifiers: E471, E472e, Soya Flour, Preservative: Calcium Propionate, Flavouring, Flour Treatment Agent: Ascorbic Acid (Vitamin C)

currently "Wholemeal Wheat Flour" is completely dropped from the parsed output. A solution is probably to recognize and here as a separator.