openfoodfacts / openfoodfacts-hungergames-react

One click categorizer for Open Food Facts
GNU Affero General Public License v3.0
5 stars 5 forks source link

Product language detection #15

Open aleene opened 5 years ago

aleene commented 5 years ago

Would it be possible to detect the language of an ingredient and product? An ingredient white list (the taxonomy) can be used for the detection. If the ingredient language does not match the ingredient list language, the new language can be added to the product. This new language can then be filled by the system, and removed from the other field. I noticed that there are many products that have the wrong language, so this would repair them. Hunger games can offer a way to confirm this.

teolemon commented 5 years ago

We already have language detection in the OCR: https://static.openfoodfacts.org/images/products/218/533/900/7208/2.json https://static.openfoodfacts.org/images/products/218/533/900/7208/2.jpg

This Swiss product is multilingual.