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
657 stars 384 forks source link

Make the list of non-vegan ingredients a tapeable list #6517

Open teolemon opened 2 years ago

teolemon commented 2 years ago

What

Why

Screenshot

Part of

otatadeabigail commented 2 years ago

For clarity please, are you suggesting each ingredient links to an article that gives detailed info on its components? or simply a pop-up giving brief detailed info

stephanegigandet commented 2 years ago

Good idea. We could create a tappable list for ingredients for which we have a corresponding Wikipedia page in the ingredients taxonomy.

otatadeabigail commented 2 years ago

@stephanegigandet Would you like me to work on this issue? What can i do. Is there already a standing wikipedia page within the openfoodfacts site or like an appendix to which each tappable ingredient would lead?

stephanegigandet commented 2 years ago

Hi @otatadeabigail , you can work on this if you want.

Here is how we can do a simple first version:

  1. have a look at /taxonomies/ingredients.txt , the definition file of the ingredients taxonomy

Some entries like en:rennet have a wikipedia property:

<en:coagulating enzyme
en:rennet
an:Cuallo
ar:منفحة
bs:Sirište
ca:quall
co:Pirrulu
cs:Syřidlo
da:osteløbe, animalsk og mikrobiel løbe
de:Lab, Labaustauschstoff
el:πυτια
es:cuajo
et:Laap
eu:Gatzagi
fi:juoksute, juoksete
fr:présure
ga:Binid
gd:Binid
gl:Callo
gu:Reenet
he:אנזים הגבנה
hr:Sirište
hu:Oltóenzim, oltóanyag
id:Rennet
is:ostahleypir
it:caglio
ja:レンネット
ko:레닛
la:Coagulum
lt:Šliužo fermentas
ms:Renet
nb:løype, osteløype, løpe, osteløpe, animalsk og mikrobiell løpe
nl:stremsel
nn:løpe, løype
pl:podpuszczka
pt:coalho, quimosina
ro:cheag
ru:рассол
sr:сириште
sv:löpe, ostlöpe, ostenzym
tr:lab
zh:凝乳酶
# gsw:Lab
# scn:Quagghiu
# vec:Conajo
# zh-cn:凝乳酶
# zh-hans:凝乳酶
# zh-hant:凝乳酶
# zh-hk:凝乳酶
# zh-sg:凝乳酶
# zh-tw:凝乳酶
wikidata:en:Q326900
wikipedia:en:https://en.wikipedia.org/wiki/Rennet
# ingredient/rennet has 5568 products in 19 languages @2019-07-08
vegan:en:maybe
vegetarian:en:maybe
  1. when generating the knowledge panel for ingredients analysis (see /lib/ProductOpener/KnowledgePanels.pm ), we can check if the ingredients have this property, in which case we can pass it to the knowledge panel template (look in /templates/ ) so that we can display a link to Wikipedia.
otatadeabigail commented 2 years ago

@stephanegigandet so I'm to search for ingredients that have this property(rennet), e.g I saw Whey as one of the ingredients listed under taxonomy/ingriedient.txt and it's non-vegan so I am to look out for other ingredients as this, list them out as they'd make up the "knowledge panel for ingriedient analysis " right?