MichielMag / parse-ingredients

Parse strings of ingredients to their name, unit, quantity and optional comments
MIT License
3 stars 9 forks source link

Expanded the Units lists #2

Closed BorisAnthony closed 2 years ago

BorisAnthony commented 3 years ago

Some entirely new additions, but some are just Capitalizations and dots. Added while parsing a library of ~500 recipes collected across the web.

MichielMag commented 3 years ago

Hey @BorisAnthony, Thank you!

I must say I'm not really a fan of putting different capitalizations in them though. I think it'd be better if the input string is just lower-cased by default.

BorisAnthony commented 3 years ago

Agreed. In fact I kept going and cleaned that up somewhat. Got to a point where it was good enough for my immediate need… and, like you, figured that to do this properly the next step would need NLP. 😅

MichielMag commented 2 years ago

Hey @BorisAnthony ,

Just a heads up that I've added some of you added unit additions directly to the main branch.