Changes

Jump to navigation Jump to search
Line 20: Line 20:  
* A whitespace involving a percentage shouldn't be modified, except if the digit is stuck in the previous word.
 
* A whitespace involving a percentage shouldn't be modified, except if the digit is stuck in the previous word.
 
** Example: "''cheese1.9%''" → "''cheese 1.9%''"
 
** Example: "''cheese1.9%''" → "''cheese 1.9%''"
* Some ingredients are enclosed with `_`, such as `_milk_` or `_cacahuetes_`, to detect allergens. Should remain unchanged. However, in the case it is not an ingredient, such as `_Cacahuetes_ con cáscara tostado. _Trazas de frutos de cáscara_.`, it needs to be modified into `_Cacahuetes_ con cáscara tostado. Trazas de frutos de cáscara.`;
+
* Some ingredients are enclosed in '_', such as "_milk_" or "_cacahuetes_", to detect allergens. Should remain unchanged. However, in the case it is not an ingredient, such as "_Cacahuetes_ con cáscara tostado. _Trazas de frutos de cáscara_.", it needs to be modified into "_Cacahuetes_ con cáscara tostado. Trazas de frutos de cáscara.";
 
* Some percentages were badly parsed by the OCR. Since we cannot be sure about what is the right value, it is preferable to keep it as it is.
 
* Some percentages were badly parsed by the OCR. Since we cannot be sure about what is the right value, it is preferable to keep it as it is.
* Accents and other language specific punctuations:
+
* In Romanian, the characters 'ş' (U+015F) and 'ţ' (U+0163) should be retrieved by the Spellcheck when necessary,
* In Romanian, the characters ["ş" (351), "ţ" (355)] (ASCII id) should be retrieved by the Spellcheck when necessary,
+
* Uppercase letters shouldn't be modified in order to add/remove accents.
* Uppercase letters shouldn't be modified.
   
** Examples: "''ECOSSE''" ; "''ÉCOSSE''"
 
** Examples: "''ECOSSE''" ; "''ÉCOSSE''"
* If lowercase, accent should be added if missing.
+
* Lowercase letters should be modified in order to add missing accents.
 
* '*' shouldn't be removed.
 
* '*' shouldn't be removed.
 
** Example: "''Schweinefleisch*''"
 
** Example: "''Schweinefleisch*''"
* Whitespaces shouldn't been modified, except in the following cases:
+
* Whitespaces shouldn't been modified, except if two words are stuck to each other.
** when two words are stuck to each other.
+
** Example: "''rizbrun''" → "''riz brun''"
*** Example: "''rizbrun''" → "''riz brun''"
   
* Regarding uppercases and lowercases, since the spellcheck should modify at least as possible lists of ingredient, we don't modify uppercases or lowercases except for the following reasons:
 
* Regarding uppercases and lowercases, since the spellcheck should modify at least as possible lists of ingredient, we don't modify uppercases or lowercases except for the following reasons:
** after a period: "orange.trace de..." → "orange. Trace de..."
+
** after a period: "''orange.trace de...''" → "''orange. Trace de...''"
** if it's a proper noun: "france" → "France"
+
** if it's a proper noun: "''france''" → "''France''"
 
* In French, the character "oe" or 'œ' should remain unchanged after correction. If it is missing, it should be replaced by default by 'œ'.
 
* In French, the character "oe" or 'œ' should remain unchanged after correction. If it is missing, it should be replaced by default by 'œ'.
 
** Examples: "''œuf''" ; "''bœuf''"
 
** Examples: "''œuf''" ; "''bœuf''"
Line 40: Line 38:  
** Example: "''citric acid electrolytes (salt, magnesium and calcium chlorides, mono-potassion phosphate)''" → "''citric acid, electrolytes (salt, magnesium and calcium chlorides, mono-potassion phosphate)''"
 
** Example: "''citric acid electrolytes (salt, magnesium and calcium chlorides, mono-potassion phosphate)''" → "''citric acid, electrolytes (salt, magnesium and calcium chlorides, mono-potassion phosphate)''"
 
* We don't add a period or modify the existing punctuation at the end of the list of ingredients.
 
* We don't add a period or modify the existing punctuation at the end of the list of ingredients.
* A ':' should be added in the following cases:
+
* A ':' should be added if it is missing between the category and name of an additive.
** it is missing between the additive category and the additive name
+
** Example: "''conservateur nitrite de sodium''" → "''conservateur: nitrite de sodium''"
*** Example: "''conservateur nitrite de sodium''" → "''conservateur: nitrite de sodium''"
 
96

edits

Navigation menu