Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quality - Remediation - Add a button to quickly add / remove underscores around allergens in ingredient list #902

Open
Tracked by #10271
asmoth360 opened this issue Oct 9, 2017 · 2 comments

Comments

@asmoth360
Copy link

asmoth360 commented Oct 9, 2017

What

Hi everyone, I've written a small Javascript function which facilitates the addition and removal of underscores around words, for the allergens in the ingredients list. You just have to select a word, or click on it, then press the button, and it adds or remove the underscores depending if they're present.
It's not much, but I believe it will make the edition quicker, especially when a list of ingredients lacks all the underscores, or on mobile.

Here is a html test page so you can try this function. Tell me if it can be used :)

Test gras.zip

Part of

@teolemon teolemon added 🥗 Ingredients 🧽 Data quality https://wiki.openfoodfacts.org/Quality labels Nov 8, 2017
@teolemon
Copy link
Member

teolemon commented Nov 8, 2017

Can you do that kind of things for more things. Eg: try to remove bad OCR results.

@asmoth360
Copy link
Author

@teolemon What do you mean, erase the field content? Or correct it with a spellchecker?

@teolemon teolemon changed the title Add a button to quickly add / remove underscores around allergens in ingredient list Quality - Remediation - Add a button to quickly add / remove underscores around allergens in ingredient list Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To discuss and validate
Status: To do
Development

No branches or pull requests

2 participants