Skip to content

Commit

Permalink
feat: feat_japanese_nutrition_table (#9467)
Browse files Browse the repository at this point in the history
feat_japanese_nutrition_table
  • Loading branch information
benbenben2 authored Dec 5, 2023
1 parent 5b2ac94 commit 1d98c75
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 4 deletions.
60 changes: 60 additions & 0 deletions lib/ProductOpener/Food.pm
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ sub assign_nid_modifier_value_and_unit ($product_ref, $nid, $modifier, $value, $
ru => "ru",
us => "us",
hk => "hk",
jp => "jp",
);

=head2 %nutriments_tables
Expand Down Expand Up @@ -743,6 +744,65 @@ It is a list of nutrients names with eventual prefixes and suffixes:
'sulphate-', 'nitrate-',
)
],
jp => [
(
'!energy-kj-', '!energy-kcal',
'!energy-', '-energy-from-fat-',
'!proteins', '-casein-',
'-serum-proteins-', '-nucleotides-',
'!fat', '-saturated-fat-',
'--butyric-acid-', '--caproic-acid-',
'--caprylic-acid-', '--capric-acid-',
'--lauric-acid-', '--myristic-acid-',
'--palmitic-acid-', '--stearic-acid-',
'--arachidic-acid-', '--behenic-acid-',
'--lignoceric-acid-', '--cerotic-acid-',
'--montanic-acid-', '--melissic-acid-',
'-unsaturated-fat-', '--monounsaturated-fat-',
'--polyunsaturated-fat-', '-omega-3-fat-',
'--alpha-linolenic-acid-', '--eicosapentaenoic-acid-',
'--docosahexaenoic-acid-', '-omega-6-fat-',
'--linoleic-acid-', '--arachidonic-acid-',
'--gamma-linolenic-acid-', '--dihomo-gamma-linolenic-acid-',
'-omega-9-fat-', '--oleic-acid-',
'--elaidic-acid-', '--gondoic-acid-',
'--mead-acid-', '--erucic-acid-',
'--nervonic-acid-', '-trans-fat-',
'cholesterol-', '!carbohydrates',
'-sugars-', '-fiber-',
'-soluble-fiber-', '-insoluble-fiber-',
'!salt', '-added-salt-',
'#sodium-', 'alcohol',
'#vitamins', 'vitamin-a-',
'beta-carotene-', 'vitamin-d-',
'vitamin-e-', 'vitamin-k-',
'vitamin-c-', 'vitamin-b1-',
'vitamin-b2-', 'vitamin-pp-',
'vitamin-b6-', 'vitamin-b9-',
'folates-', 'vitamin-b12-',
'biotin-', 'pantothenic-acid-',
'#minerals', 'silica-',
'bicarbonate-', 'potassium-',
'chloride-', 'calcium-',
'phosphorus-', 'iron-',
'magnesium-', 'zinc-',
'copper-', 'manganese-',
'fluoride-', 'selenium-',
'chromium-', 'molybdenum-',
'iodine-', 'caffeine-',
'taurine-', 'ph-',
'fruits-vegetables-nuts-', 'fruits-vegetables-nuts-dried-',
'fruits-vegetables-nuts-estimate-', 'collagen-meat-protein-ratio-',
'cocoa-', 'chlorophyl-',
'carbon-footprint-', 'carbon-footprint-from-meat-or-fish-',
'nutrition-score-fr-', 'nutrition-score-uk-',
'glycemic-index-', 'water-hardness-',
'choline-', 'phylloquinone-',
'beta-glucan-', 'inositol-',
'carnitine-', 'sulphate-',
'nitrate-',
)
],
);

# Compute the list of nutriments that are not shown by default so that they can be suggested
Expand Down
8 changes: 4 additions & 4 deletions taxonomies/nutrients.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ he:אנרגיה - קלוריות (kJ)
hr:Energija (kJ)
hu:Energia (kJ)
it:Energia (kJ)
ja:エネルギー (kJ)
ja:エネルギー (kJ), 熱量 (kJ)
lt:Energinė vertė (kJ)
lv:Enerģētiskā vērtība (kJ)
mt:Enerġija (kJ)
Expand Down Expand Up @@ -75,7 +75,7 @@ he:אנרגיה - קלוריות (kcal)
hr:Energija (kcal)
hu:Energia (kcal)
it:Energia (kcal)
ja:エネルギー (kcal)
ja:エネルギー (kcal), 熱量 (kcal)
lt:Energinė vertė (kcal)
lv:Enerģētiskā vērtība (kcal)
mt:Enerġija (kcal)
Expand Down Expand Up @@ -143,7 +143,7 @@ id:Energi
io:energio
is:orka
it:Energia
ja:エネルギー
ja:エネルギー, 熱量
jv:energi
ka:ენერგია
kk:энергия
Expand Down Expand Up @@ -2807,7 +2807,7 @@ id:Protein
io:proteino
is:Prótín
it:Proteine, proteina
ja:たんぱく質
ja:たんぱく質, 蛋白質, タンパク質
jv:Protein
ka:ცილები
kk:Ақуыз
Expand Down

0 comments on commit 1d98c75

Please sign in to comment.