openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
654 stars 384 forks source link

Additives detection of E Numbers without E or with another prefix: INS, SIN etc. (Hong kong, India, Arabic) #1133

Closed aleene closed 5 years ago

aleene commented 6 years ago

They seem to the european e-numbers in the ingredients lists, but they leave out the “E”. These are now not detected by OFF.

stephanegigandet commented 6 years ago

example product: https://hk.openfoodfacts.org/product/4891028164456/vlt-vita "water, sugar, tea, lemon juice, flavouring, acidity regulator (330, 331), vitamin C, antioxidant (304)"

stephanegigandet commented 6 years ago

related to that, India seems to prefix the e-numbers with INS : https://in.openfoodfacts.org/product/8908009670014/omg-oh-my-ganna-nutricane

"REAL SUGARCANE, SALT, ANTIOXIDANT (INS 300), ACIDITY REGULATOR (INS 334), STABILIZER (INS 440, INS 337), WATER (FOR MAINTAINING DESIRED BRIX), CONTAINS PERMITTED NATURAL FLAVOUR & NATURAL IDENTICAL COLOURING SUBSTANCES (INS 141[i])"

stephanegigandet commented 6 years ago

https://fr.openfoodfacts.org/produit/3379670008324/chicken-luncheon-meat-covi

Stabilisants: (SIN450i, SIN450iii), antioxydant (SIN316), Agent de conservation: (SIN250).

SIN = Système International de Numération.

There might be other prefixes in use in other countries.

stephanegigandet commented 5 years ago

Additives detection for those cases now work. Added tests for them.