recipe-parser icon indicating copy to clipboard operation
recipe-parser copied to clipboard

Units wrongly assumed

Open TypicallyThomas opened this issue 2 years ago • 1 comments

Great work on this one. It really helps me out. Sadly, it working correctly is a crapshoot. I put in "85g butter, room temperature". You'd assume it would take g as grams and therefore a unit, but instead it sees the t's in Butter and decides those are the unit, and the ingredient is "g buer, room temperature" which doesn't happen often but it happens often enough to ruin my application. Is there a way you can fix this or should I just botch a solution to the strings fed into the module?

TypicallyThomas avatar Oct 03 '22 07:10 TypicallyThomas

From what I can tell t.t. is Terrestrial Time, which seems like a fairly unnecessary unit for this algorithm to look for

TypicallyThomas avatar Oct 03 '22 07:10 TypicallyThomas