openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
GNU Affero General Public License v3.0
611 stars 357 forks source link

Add type-ahead suggestions for ingredients #278

Open lucaa opened 8 years ago

lucaa commented 8 years ago

When typing ingredients, It would be interesting to have suggestions for the known ingredients, especially for the beauty products for which transcription of ingredients from the label is much more difficult, and recognition is hard since labels are very small and OCR doesn't make it.

lucaa commented 8 years ago

A working demo for ingredients was already attached to #213 (https://github.com/openfoodfacts/openfoodfacts-server/files/241321/autocomplete_ingredients_10_03_2016.tar.gz ) , it only needs some more work on the service, to decide what ingredients to suggest.

lucaa commented 8 years ago

Here is my remark about the service, copied from the other issue:

"However, I think the service that Stephane prepared needs to be improved to suggest all the values that can appear on a label, not only the values from the taxonomy. The idea is that the user should be able to find in these suggestions exactly what is written on the label so that they can fill in fast, without having to know the synonyms.

For example, the service does not return "aqua": http://world.openbeautyfacts.org/cgi/suggest.pl?lc=fr&tagtype=ingredients&string=a . "

teolemon commented 8 years ago
teolemon commented 4 years ago

Given that ingredients have been taxonomized, we can probably move forward with this one