Changes

Jump to navigation Jump to search
Line 30: Line 30:  
* Whitespaces shouldn't been modified, except if two words are stuck to each other.
 
* Whitespaces shouldn't been modified, except if 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:
+
* Letters shouldn't be converted to uppercase/lowercase, except if a word is after a period or if a word is a proper noun.
** after a period: "''orange.trace de...''" → "''orange. Trace de...''"
+
** Example: "''[...] orange.trace de [...]''" → "''[...] orange. Trace de [...]''"
** if it's a proper noun: "''france''" → "''France''"
+
** Example: "''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''"
 
* Commas and other word separators (, -, .) should be added to distinct ingredients.
 
* Commas and other word separators (, -, .) should be added to distinct ingredients.
 
** 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.
+
* The existing punctuation at the end of the list of ingredients shouldn't be modified. In particular, a period shouldn't be added at the end of the list of ingredients.
 
* A ':' should be added if it is missing between the category and name of an additive.
 
* A ':' should be added if it is missing between the category and name of an additive.
 
** Example: "''conservateur nitrite de sodium''" → "''conservateur: nitrite de sodium''"
 
** Example: "''conservateur nitrite de sodium''" → "''conservateur: nitrite de sodium''"
96

edits

Navigation menu