Skip to content

Commit

Permalink
Update taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturLange committed Aug 22, 2023
1 parent d8bbc18 commit 1ec00be
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/ProductOpener/Ingredients.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ sub parse_ingredients_text ($product_ref) {
],

'pl' => [
'^czekolada deserowa: masa kakaowa min(imum)?$',
'^czekolada( deserowa)?: masa kakaowa min(imum)?$',
'^masa kakaowa( w czekoladzie mlecznej)? min(imum)?$',
'^masa mleczna min(imum)?$',
'^(?>\d+\s+g\s+)?(?>\w+\s?)*?100\s?g(?> \w*)?$', # "pomidorów zużyto na 100 g produktu"
Expand Down
2 changes: 1 addition & 1 deletion taxonomies/allergens.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ mt:ħalib, lattosju
nb:melk, melkepulver, skummet melk, skummetmelkepulver, helmelk, helmelkpulver, helmelkspulver, kumelk, laktose, fløte, melkefett, melkeprotein, melkeproteiner, tørrmelk, ost, ostepulver, geitost, geitmyse, geitfløte, geitmelk, myse, mysepulver, kjernemelk, ferskost, ferskostepulver, skummetmelkyoghurtpulver
nl:melk, melkpoeder, lactose, boter, karnemelk, room, jogurt, kaas, gouda, edam, yoghurt, melkvet, melkeiwit
nl_be:melk, melkpoeder, lactose, boter, karnemelk, room, jogurt, kaas, gouda, edam, yoghurt, melkvet, melkeiwit
pl:mleko, laktozą, mleka, mleczny, laktozę, mleczna, mleczne, serwatka, serwatkowy, serwatkowa, ser, serowy, serowa, serowe
pl:mleko, laktozą, mleka, mleczny, laktozę, mleczna, mleczne, serwatka, serwatkowy, serwatkowa, ser, serowy, serowa, serowe, łącznie z laktozą
pt:leite, lactose, soro, lactéos, manteiga, iogurte, queijo, proteína de leite, leite e seus derivados, derivados de leite
ro:lapte, lactoză
ru:молоко, лактоза, сливки, молочная сыворотка, йогурт
Expand Down
14 changes: 9 additions & 5 deletions taxonomies/ingredients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6888,6 +6888,7 @@ es:queso blanco fresco
<en:Cheese
en:cream cheese
hr:krem sir
pl:serek śmietankowy

<en:cheese
en:Quark
Expand Down Expand Up @@ -13203,7 +13204,7 @@ lb:schmalz
nb:smult
nl:reuzel
nn:smult
pl:smalec
pl:smalec, smalec wieprzowy
pt:banha
ru:смалец
sv:ister
Expand Down Expand Up @@ -15993,7 +15994,7 @@ lv:rapšu eļļa, rapšu ella
nb:rapsolje
nl:raapolie, raapzaad, raap, raapzaadolie, gedeeltelijk geharde raapzaadolie
no:rapsolje
pl:olej roślinny rzepakowy, olej rzepakowy, olej z rzepaku, oleje roślinne rzepakowy
pl:olej roślinny rzepakowy, olej rzepakowy, olej z rzepaku, oleje roślinne rzepakowy, tłuszcz rzepakowy, tłuszcze roślinne rzepakowy, tłuszcz roślinny rzepakowy
ro:ulei de rapiță, ulei vegetal de rapiță, ulei de rapita
ru:Рапсовое масло
sk:repkový olej
Expand Down Expand Up @@ -33285,6 +33286,7 @@ de:Sojaerzeugnis
<en:soya bean
en:soya base
es:base de soja
pl:baza sojowa

# fr:Jus de soja is a compound ingredient:soybean + water

Expand Down Expand Up @@ -40264,7 +40266,9 @@ pl:borówka amerykańska, borówka wysoka, niebieska jagoda, borówki amerykańs
en:billberry, common blueberry
fi:mustikka, mustikat
la:Vaccinium myrtillus
pl:borówka czarna, jagoda, czarna jagoda, czernica, borówka czernica, borówki czernicy, jagodowy, jagodowe, jagodowa, czarnej jagody
pl:pl:borówka czarna, jagoda, jagoda czarna, czarna jagoda, czarne jagody, czarnej jagody, czernica, borówka czernica, borówki czernicy, jagoda, jagody, jagodowy, jagodowe, jagodowa
wikipedia:en:https://en.wikipedia.org/wiki/Vaccinium_myrtillus
wikidata:en:Q5413585

#comment:en:
<en:blueberry
Expand Down Expand Up @@ -41068,7 +41072,7 @@ fr:crème de noix de coco, crème de coco
it:Crema di noce di cocco
ja:ココナッツクリーム
nl:kokoscreme
pl:śmietanka kokosowa, śmietanki kokosowej
pl:śmietanka kokosowa, śmietanki kokosowej, krem kokosowy
pt:Creme de coco
se:Kokosgrädde
# openfoodfacts:https://world.openfoodfacts.org/ingredient/fr:crème-de-noix-de-coco
Expand Down Expand Up @@ -47411,7 +47415,7 @@ nl:zuring, veldzuring, zurkel
nn:engsyre
nv:chaatʼíní
os:хуырхæг
pl:szczaw zwyczajny, szczaw
pl:szczaw zwyczajny, szczaw, szczawiu
pt:azeda
ro:măcriș
ru:щавель кислый
Expand Down
13 changes: 11 additions & 2 deletions taxonomies/packaging_materials.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,7 @@ hr:metale
hu:Fém, fémek
it:Metallo, Metalli
nl:Metaal, Metalen
pl:Metal, Metale
pt:Metais
ru:Металл
wikidata:en:Q11426
Expand All @@ -1325,6 +1326,7 @@ fr:Métaux recyclables
hu:Újrahasznosítható fémek
it:Metalli riciclabili
nl:Recyclebaar metaal
pl:Metal do recyclingu
pt:Metais recicláveis
description:de:Alle Metalle können bei ordnungsgemäßer Rückgabe wiederverwendet werden.
description:en:All metals can be reused, if returned properly.
Expand All @@ -1345,6 +1347,7 @@ hr:čelik
hu:Acél
it:Acciaio
nl:IJzer, Staal
pl:Żelazo, Stal
pt:Aço
ru:Сталь
ja:スチール
Expand Down Expand Up @@ -1404,7 +1407,7 @@ lv:alumīnijs
mt:aluminju
nl:Aluminium
nn:aluminium
pl:glin
pl:Aluminium, glin
pt:Alumínio
ro:aluminiu
ru:Алюминий
Expand All @@ -1428,6 +1431,7 @@ es:Aluminio grueso, Aluminio pesado
fr:Aluminium lourd, aluminium épais
it:Alluminio spesso, Alluminio pesante
nl:Dik aluminium, Zwaar aluminium
pl:Grube aluminium, Ciężkie aluminium
pt:Alumínio pesado, alumínio grosso, alumínio rígido
description:de:Die Aluminiumproduktion aus Erz hat einen großen CO2-Fußabdruck, aber Recycling kann diesen um das 20-fache verbessern. Dickes Aluminium wird zum Beispiel für Schalen oder Dosen verwendet. Dickes Aluminium lässt sich gut recyceln, erfordert aber einen separaten Rücklauf oder eine spezielle Absaugtechnik.
description:en:Aluminum production from ore has a large carbon footprint, but recycling can improve this by 20x. Thick aluminum is used, for example, for trays or cans. Thick aluminum is highly recyclable, but requires a separate return flow or special extraction technology.
Expand All @@ -1443,6 +1447,7 @@ en:Light aluminium, thin aluminium
de:Leichtes Aluminium, dünnes Aluminium
fr:Aluminium léger, aluminium fin
nl:Dun aluminium
pl:Cienkie aluminium, Lekkie aluminium
pt:Alumínio leve, alumínio fino, alumínio maleável
description:de:Die Aluminiumproduktion aus Erz hat einen großen CO2-Fußabdruck, aber Recycling kann diesen um das 20-fache verbessern. Als Folie wird beispielsweise dünnes Aluminium verwendet. Dünnes Aluminium ist schwer zu recyceln, da es nicht aus Abfallströmen gewonnen werden kann.
description:en:Aluminum production from ore has a large carbon footprint, but recycling can improve this by 20x. For example, thin aluminum is used as a foil. Thin aluminum is difficult to recycle because it cannot be extracted from waste streams.
Expand Down Expand Up @@ -1476,7 +1481,7 @@ mt:injam
nb:treverk
nn:trevirke
nl:Hout
pl:drewno
pl:Drewno, drewniane
pt:Madeira
ro:lemn
ru:Древесина
Expand Down Expand Up @@ -1518,6 +1523,7 @@ io:korko
it:sughero
nl:Kurk
oc:siure
pl:Korek
pt:Cortiça
ru:Пробка
sv:kork
Expand Down Expand Up @@ -1710,6 +1716,7 @@ fr:Verre transparent
hr:bezbojno staklo
hu:Fehér üveg
nl:transparant glas, transparant glazen
pl:Przezroczyste szkło, Przeźroczyste szkło
pt:Vidro transparente
xx:70 GL, GL 70, 70GL, GL70, 70 GLS, GLS 70, 70GLS, GLS70
wikidata:en:Q28869937
Expand All @@ -1723,6 +1730,7 @@ fr:Verre vert
hr:zeleno staklo
hu:Zöld üveg
nl:Groen glas, groene glazen
pl:Zielone szkło
pt:Vidro verde
xx:71 GL, GL 71, 71GL, GL71, 71 GLS, GLS 71, 71GLS, GLS71

Expand All @@ -1735,6 +1743,7 @@ fr:Verre brun
hr:smeđe staklo
it:vetro marrone
nl:Bruin glas, bruine glazen
pl:Brązowe szkło
pt:vidro marrom
xx:72 GL, GL 72, 72GL, GL72, 72 GLS, GLS 72, 72GLS, GLS72
wikidata:en:Q2184152
Expand Down
27 changes: 24 additions & 3 deletions taxonomies/packaging_shapes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ fr:Barquette, barquettes, Plateau, plateaux, tablette, tablettes, fond, fonds, c
hu:Tálca, tálcák
it:Vaschetta
nl:Tray
pl:Tacka
pt:Tabuleiro, cuvete, tabuleiros, cuvetes, couvete, couvetes
description:nl:Een open verpakking die onderverdeeld is in verschillende vakjes.

Expand All @@ -127,6 +128,7 @@ fr:Bocal, bocaux
hu:Befőttes üveg, befőttes üvegek
it:Vasetto, Barattolo
nl:Pot, Potten, Bokaal, Bokaalen
pl:Słoik
pt:Jarro, jarros, jarra, jarras
ro:Borcan
# suggest:packaging_materials:nl: en:glass
Expand All @@ -144,6 +146,7 @@ hr:kutija
hu:Doboz, dobozok
it:Scatola, scatole, astuccio, scatoletta
nl:Doos, doosje, Dozen, Doosjes, Pakje, Pakjes
pl:Pudełko, Pudło
pt:Caixa, caixas
# suggest:packaging_materials:nl: en:paper, en:cardboard
description:nl:Een veelal kartonnen balkvormige verpakking
Expand All @@ -159,7 +162,7 @@ nl:Eierdoos
fr:Boîte à œufs
en:egg carton, egg box
tr:Yumurta kartonu
pl:wytłaczanka
pl:Wytłaczanka, Wytłoczka
ja:卵パック
de:Eierkarton
wikidata:en:Q959287
Expand Down Expand Up @@ -322,6 +325,7 @@ hr:limenka
hu:konzervdoboz, konzerv
it:Lattina, Latta
nl:Blik, Bus
pl:Puszka
pt:Lata, latas
# suggest:packaging_materials:en: en:unknown metal, en:aluminium, en:steel
# the line below indicates a default material: en:metal
Expand All @@ -340,6 +344,7 @@ fr:Canette, cannette, canettes, cannettes, boîte boisson, boites boissons
hu:italos konzerv, italkonzerv, konzervital
it:Lattina per bevande
nl:Blikje, Blikjes
pl:Puszka na napoje
pt:Lata de bebida, latas de bebidas, lata de alumínio, latas de alumínio, lata de refrigerante, latas de refrigerante, lata de refrigerantes, latas de refrigerantes
wikidata:en:Q3261783
description:nl:Een cilindervormig afgesloten blikken vaatje voor dranken
Expand All @@ -358,6 +363,7 @@ fr:Boîte de conserve, boîtes de conserves
hu:ételes konzerv, ételkonzerv, konzervétel
nl:Conservenblik
it:Lattina di cibo
pl:Puszka na żywność
pt:Lata de alimentos, latas de alimentos, lata de alimento, latas de alimento, lata de conserva, lata de conservas, latas de conserva, latas de conservas, lata de comida, latas de comida, lata de comidas, latas de comidas, lata para alimentos, latas para alimentos, lata para alimento, latas para alimento
description:nl:Een cilindervormig afgesloten blikken vaatje voor groenten, e.d.
# image:xx:boite-boitier-5.svg (boite de conserve)
Expand All @@ -370,10 +376,10 @@ es:Bote, botes, vaso, vasos
fr:Pot, pots, coupelle, coupelles, verrine, verrines, ravier, raviers, coupe, coupes, coupe / coupelle
hu:Pohár, fazék, lábas, edény, csésze, kanna
nl:Kuip, kuipje
pl:słoik
pl:Kubek, Kubeczek
pt:Pote, potes, boião, boiões, copo
description:nl:Wijd, houten, metalen of plastic vat
comment:en:Klopt deze vertaling wel? Is het niet meer een pot en moet kuip ergens anders onder gebracht worden?
comment:nl:Klopt deze vertaling wel? Is het niet meer een pot en moet kuip ergens anders onder gebracht worden?

<en:pot
en:individual pot, individual cup, individual pots, individual cups
Expand Down Expand Up @@ -553,6 +559,7 @@ el:Καπάκι
fr:Couvercle, couvercles
hu:Fedél, tető, fedő
nl:Deksel, deksels
pl:Nakrętka, Zakrętka, Pokrywka, Wieczko, Wieko
pt:Tampa, tampas
# image:xx:couvercle-1.svg (cloche)
# image:xx:couvercle-2.svg (couvercle)
Expand All @@ -566,6 +573,7 @@ bg:Капачка, капачка за бутилка, капачки
fr:Bouchon, bouchons, Bouchon de bouteille, bouchons de bouteilles, bouchons
hu:Kupak, borosdugó, dugó
nl:Dop, Doppen
pl:Kapsel
pt:Cápsula de garrafa, cápsulas de garrafa, tampa de garrafa, tampas de garrafa, rolha, rolhas, rolha de garrafa, rolhas de garrafa, rolha de cortiça, rolhas de cortiça, rolha de plástico, rolhas de plástico, carica, caricas, cápsula de rosca, cápsulas de rosca
wikidata:en:Q1440281
# image:xx:bouchon-1.svg
Expand All @@ -592,6 +600,7 @@ en:Wine cork, wine bottle cork, wine corks, wine bottle corks
bg:Коркова тапа, Корк за вино
fr:bouchon de bouteille de vin, bouchons de bouteilles de vin, bouchon de vin
hr:pluteni čep
pl:Korek do wina
nl:Wijnkurk, wijnkurken, Wijn kurk
wikidata:en:Q86511715
# image:xx:bouchon-2.svg (wine cork)
Expand Down Expand Up @@ -624,6 +633,7 @@ en:Coffee capsule, coffee capsules
fr:Capsule de café, Capsules de café, capsules café, capsule café
hu:Kávékapszula, kávé kapszula, kávékapszulák, kávé kapszulák
nl:Koffiecapsule, Koffiecapsules, Nespressocapsule, Nespresso-capsule
pl:Kapsułka do kawy
pt:Cápsula de café, cápsulas de café, cápsula de cafés, cápsulas de cafés
wikidata:en:Q4236462
# suggest:packaging_materials:en: en:plastic, en:aluminium
Expand Down Expand Up @@ -696,6 +706,7 @@ pt:Talheres, talher
<en:Eating utensils
en:Cutlery
fr:Couverts, couvert
pl:Sztućce

# keep the plural
<en:Eating utensils
Expand All @@ -706,6 +717,7 @@ de:Essstäbchen
fr:Baguettes
hu:evőpálcikák, evőpálkcika
nl:Stokjes
pl:Pałeczki
pt:Pauzinhos chineses, palitinhos, hashi
wikidata:en:Q81980

Expand All @@ -718,6 +730,7 @@ fr:Couteau, couteaux
hr:nož
hu:kés, kések
nl:Mes, messen
pl:Nóż, noże
pt:Faca, facas
wikidata:en:Q32489

Expand All @@ -730,6 +743,7 @@ fr:Fourchette, fourchettes
hr:vilica
hu:villa, villák
nl:Vork, vorken
pl:Widelec, widelce
pt:Garfo, garfos
wikidata:en:Q81881

Expand All @@ -742,6 +756,7 @@ fr:Cuillère, cuiller, cuillères, cuillers
hr:žlica
hu:kanál, kanalak
nl:lepel, lepels
pl:Łyżka, łyżki
pt:Colher, colheres
wikidata:en:Q81895

Expand All @@ -750,6 +765,7 @@ en:teaspoon
bg:чаена лъжичка, чаена лъжица
fr:cuillère à café
nl:theelepel
pl:Łyżeczki, Łyżeczka
wikidata:en:Q216425

<en:Spoon
Expand Down Expand Up @@ -802,6 +818,7 @@ de:Netz
fr:Filet, filets
hu:Háló, hálók
nl:Net, netje, netten, netjes
pl:Siatka, siatki
pt:Rede, redes, saco de rede, sacos de rede, sacos de redes, saco de redes
# suggest:packaging_materials:en: en:metal, en:other
# related_categories:en: en:Fresh garlic
Expand Down Expand Up @@ -889,6 +906,7 @@ el:Μπολ
fr:Bol, bols
hu:Tál, tálak
nl:Schaal, Schaaltje, Schaaltjes, Vlootje, Vlootjes, Bak, Bakje, Bakjes, kom, kommen
pl:Miska, miski
pt:Tigela, taça, tigelas, taças
wikidata:en:Q153988
# image:xx:bol-coupe-coupelle-1.svg (bol)
Expand All @@ -901,6 +919,7 @@ fr:Assiette, assiettes
hr:tanjur
hu:tányér, tányérok
nl:Bord, Borden, Bordje
pl:Talerz, talerze
pt:Prato, pratos
wikidata:en:Q57216
# suggest:packaging_materials:en: en:plastic, en:cardboard
Expand Down Expand Up @@ -930,6 +949,7 @@ de:Etikett, Etiketten
fr:étiquette, étiquettes
hu:címke, címkék
nl:Label, labels
pl:Etykieta, etykiety
pt:Etiqueta, etiquetas, rótulo, rótulos
weight:en:light
# suggest:packaging_materials:en: en:paper, en:cardboard, en:other
Expand Down Expand Up @@ -1231,6 +1251,7 @@ wikidata:en:Q47107
<en:bucket
en:small bucket
nl:emmertje
pl:wiaderko

# fr:Plat (Bol, Saladier, Terrine, …) in data from Les Mousquetaires
en:Dish, dishes
Expand Down

0 comments on commit 1ec00be

Please sign in to comment.