Skip to content

Commit

Permalink
taxonomy: paprika for color (#10627)
Browse files Browse the repository at this point in the history
Handles more synonyms used in the US for paprika used as a colour
  • Loading branch information
stephanegigandet authored Aug 5, 2024
1 parent 9e9ecf7 commit f837a3b
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 9 deletions.
12 changes: 6 additions & 6 deletions taxonomies/additives.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@


# stopwords for matching more additives
stopwords:en: of
stopwords:fr: de, d, des, du, le, la, les, a, aux
stopwords:en: of, for, added
stopwords:fr: de, d, des, du, l, le, la, les, a, au, aux, pour

# synonyms need to be separated with an empty line
synonyms:en: FD&C, FD and C, FDC, FFDCA, FDCA
Expand Down Expand Up @@ -52,9 +52,9 @@ synonyms:en: no11, n11, 11

synonyms:en: no12, n12, 12

synonyms:en: colour, color
synonyms:en: colour, color, colouring, coloring

en: E100, Curcumin, Turmeric extract, curcuma extract
en: E100, Curcumin, Turmeric extract, curcuma extract, turmeric color
xx: E100
ar: E100, كركومين
bg: E100, куркумин
Expand Down Expand Up @@ -2274,8 +2274,8 @@ xx: E160b(ii)
additives_classes:en: en:colour
e_number:en: 160b


en: E160c, Paprika extract, capsanthin, capsorubin, Paprika oleoresin
# in English, we sometimes have "paprika color", in which case it is clearly the additive
en: E160c, Paprika extract, capsanthin, capsorubin, Paprika oleoresin, oleoresin of paprika, oleoresin paprika, paprika color, colored with paprika
xx: E160c
bg: E160c, Паприка екстракт, капсантин, капсорубин
ca: E160c, Capsantina
Expand Down
6 changes: 3 additions & 3 deletions taxonomies/additives_classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# FAO reference: http://www.fao.org/gsfaonline/reference/techfuncs.html?lang=en

# agent de blanchiment de la farine
stopwords:en: a, an, for, added, to, as
stopwords:fr: la, les, des, du, de, d, un, une, ajouté, ajoutés, ajoutée, ajoutées, pour
stopwords:en: a, an, for, added, to, as, for, with, added
stopwords:fr: l, la, les, des, du, de, d, un, une, ajouté, ajoutés, ajoutée, ajoutées, pour, avec
stopwords:es: de, del, la, las, los, una

en: Acid, Acidifier, Acidulant, tartness, provides tartness
Expand Down Expand Up @@ -348,7 +348,7 @@ description:en: A food additive used to dissolve, dilute, disperse or otherwise
description:es: Aditivos alimentarios que se utilizan para disolver, diluir, dispersar o modificar de otras maneras un aditivo alimentario o nutriente sin alterar su función (y sin generar por sí mismos efecto tecnológico alguno) con el fin de facilitar la manipulación, la aplicación o uso del aditivo alimentario o nutriente.
description:fr: Additif alimentaire utilisé pour dissoudre, diluer, disperser ou modifier physiquement de toute autre façon un additif alimentaire ou un nutriment sans altérer sa fonction (et sans produire lui-même d’effet technologique) afin de faciliter sa manipulation, son application ou son utilisationde l’additif alimentaire ou du nutriment.

en: Colour, color, colouring, coloring, decorative pigment, surface colorant, for color, artificial color, artificial colour, color added, colors added, artificial color added, colorant, colours, colors, coloring food, colouring food, synthetic colour, colouring agent, coloring agent
en: Colour, color, colouring, coloring, decorative pigment, surface colorant, for color, artificial color, artificial colour, color added, colors added, artificial color added, colorant, colours, colors, coloring food, colouring food, synthetic colour, colouring agent, coloring agent, colored, coloured
bg: Оцветител, оцветители
ca: Color, colors, colorant, colorants, pigment decoratiu
cs: Barvivo
Expand Down
56 changes: 56 additions & 0 deletions tests/unit/additives_tags.t
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,62 @@ my @tests = (
},
[]
],
# Paprika for color
[
{
lc => 'en',
ingredients_text => "paprika for color"
},
['en:e160c']
],
# Colored with paprika
[
{
lc => 'en',
ingredients_text => "colored with paprika"
},
['en:e160c']
],
# oleoresin paprika
[
{
lc => 'en',
ingredients_text => "oleoresin paprika"
},
['en:e160c']
],
# oleoresin of paprika
[
{
lc => 'en',
ingredients_text => "oleoresin of paprika"
},
['en:e160c']
],
# paprika added for color
[
{
lc => 'en',
ingredients_text => "paprika added for color"
},
['en:e160c']
],
# turmeric color
[
{
lc => 'en',
ingredients_text => "turmeric color"
},
['en:e100']
],
# turmeric for color
[
{
lc => 'en',
ingredients_text => "turmeric for color"
},
['en:e100']
],

);

Expand Down

0 comments on commit f837a3b

Please sign in to comment.