Changes

Jump to navigation Jump to search
Line 133: Line 133:  
=== Bootstrap ===
 
=== Bootstrap ===
 
Before starting with the maintenance action, it is first necessary to get the ingredients your language going. The next actions can be done:
 
Before starting with the maintenance action, it is first necessary to get the ingredients your language going. The next actions can be done:
* Adapt file [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Ingredients.pm ingredients.pm] - this file contains various elements, which are used to analyse the ingredients of a product:
+
* Adapt file [https://github.com/openfoodfacts/openfoodfacts-server/blob/master/lib/ProductOpener/Ingredients.pm ingredients.pm] - this file contains various elements, which are used to analyse the ingredients of a product (in the order they appear in the file):
** Bulleted list item
+
** Traces (''%may_contain_regexps'') - is the start of a phrase that introduces traces;
 +
** Allergens (''%contains_regexps'') - appears after an ingredient, to indicate an allergen;
 +
** Abreviations (''%abbreviations'') - commonly used abbreviations in ingredient lists;
 +
** Or (''%of'') - an optional choice between ingredients, eg '''colza or sunflower oil''';
 +
** And (''%and'') - two ingredients, not separated by a delimiter, eg '''herbs and spices''';
 +
** And of (''%and_of'') -
 +
** And/or
    
=== Actions ===
 
=== Actions ===
3,393

edits

Navigation menu