I'm building Tellog, an Android app where you hold a button, say one sentence like "chicken rice bowl, 45 minute push day, took vitamin D", and it turns into separate food, workout and supplement entries. It works in English, Turkish, Spanish, French, German, Portuguese, Arabic and Japanese.
Here are the design decisions that mattered most, in case you're building anything that turns free speech into structured data.
1. Parsing the sentence is the easy part. Units are the hard part
Modern speech-to-text plus an LLM will happily split a sentence into items. What breaks is quantity: "3 spoons", "a handful", "half a plate", "bir kase" (a bowl) all mean different grams depending on the food, the cuisine and the language.
I tried hand-written rules first and it was whack-a-mole. What works better:
The model returns structured fields (food, amount, unit, confidence) through a strict schema, never free text I have to regex.
Unknown names and units go through a shared catalog t
Discussion
Leave the first comment
Be the first to leave a mark on this discussion.