Skip to content

What should Ingredients text really contain? Should we add sentences like for allergies to ingredience or not? #4895

Answered by M123-dev
rugk asked this question in Q&A
Discussion options

You must be logged in to vote

@vince true, that is how it should be in the end. However @benben has been working on parsing the ingredients and it will extract the traces if they are entered in the ingredients.


There is a variable called "may_contain_regexps" in the Ingredients.pm file that contains stopwords before the traces for each languages.

Ideally, everyone should just select the ingredients area and extract.
Then, review and correct manually
And if it does not work for traces because the stopword is not in the aforementioned variable, if it is easy for you to add it as a new stopword then feel free to do it. If it is not easy, just post it on Slack or create an issue on github and someone else will do it.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@rugk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@rugk
Comment options

@M123-dev
Comment options

@M123-dev
Comment options

@M123-dev
Comment options

Answer selected by rugk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants