Chepatapa Apps
← Build Log

Nov 2026 · Flare / build notes

Describe It: Logging a Hot Flash in One Sentence, With No Server

Flare 1.4.0 lets you type or dictate one sentence, like "strong flash after coffee, about 10 minutes", and fills in the log form from it. Other apps send that kind of text to a language model. Flare reads it on the phone with a rule-based parser and ten small word lists. Here's how that works, and what it deliberately can't do.

Why a sentence instead of a form

Flare's log form is short: intensity, duration, triggers, time. But people log in the worst moments, in the middle of a flash or after waking up drenched at 3 am, and even a short form is work then. A competitor teardown pointed the same way: a successful chronic-illness app built its whole pitch around logging by message instead of filling in forms.

That app sends the message to a cloud language model. Flare can't. Its promise is no account and nothing leaving the phone, and the data lives in a local database with no backend at all. So the parser had to run on the device, with no network call.

Three decisions that kept it simple

Voice comes from the keyboard. The dictation key on the iOS or Android keyboard already turns speech into text. Using it means no speech plugin, no microphone permission prompt and no change to the privacy labels. The hint under the field says "Tap the keyboard mic to dictate." The keyboard provider does the dictation under its own terms, and Flare's privacy text says so.

It fills the form, it never saves. The parser fills the form, and you check it and tap Save as usual. A bad match costs one tap to fix, never a wrong entry in Insights. The original sentence goes into Notes, so whatever the parser didn't understand ("during a meeting") is kept.

It's free for everyone, in all ten of Flare's languages. Saving an entry is never behind the paywall in Flare, and a faster way to save shouldn't be either.

How the parser reads a sentence

The text is lowercased and run through a hand-written fold table (accents, ё to е, curly apostrophes), the same one applied to the word lists. Word boundaries needed care: Dart's \b only knows ASCII, so it fails on Cyrillic, and the parser uses Unicode letter lookarounds instead.

Then it makes passes in a fixed order, and each pass removes the words it used, so later passes can't read them again:

1. Symptom names ("hot flash", "bouffée de chaleur", "приливы") go first, so "hot" never sets the hot-room trigger. 2. Times, so "an hour ago" isn't read as a 60-minute duration. 3. Triggers, longest phrase first, so "slept 4 hours" counts as poor sleep and the 4 hours isn't read as a duration. 4. Intensity and duration numbers. 5. Intensity words.

Most of the rules are small and specific. "7 out of 10" maps to Flare's 1 to 5 scale by halving and rounding up. A bare number is never an intensity. "3/10" followed by a month name is a date, not a score. A time later than now means the most recent past one, so "at 11" typed in the morning means last night. A negation in the three words before a trigger cancels it ("no coffee today"), but only negations of the same language count: in Portuguese "no" means "in the".

Ten languages as data, not code

Everything that depends on the language lives in one JSON file per language: trigger phrases, number words up to ten, units, negations, words that break a clause ("but", "aber", "но"), and time patterns like vor {n} {unit} or {h}h{mm}. The intensity words always include the app's own labels in that language (mild, low, moderate, strong, intense), and a test checks that they're there.

English runs as a fallback on whatever the main language left over, but only for triggers and units, because people mix languages ("Kaffee und dann wine"). Each lexicon also has a short blocklist of English words that collide with real words in that language.

A bug the feature uncovered

New entries used to get their id from the timestamp in milliseconds. Tapping through the form never produced two entries with the same id. But "at 3 pm" lands exactly on a minute boundary, so two parsed entries for the same minute would get the same id, and the second would quietly overwrite the first. New entries now get a random UUID. Old ids keep working, because nothing ever read meaning out of them.

What it can't do yet

The known misses are written down in the test fixtures instead of hidden: dayparts like "de la tarde", "yesterday at 8", negations that come after the noun ("je n'ai pas bu de café"), number words above ten. Flare 1.5.0 closed a few: "half past three", "half three" and "an hour and a quarter" now parse.

On privacy, the parser never logs the text and never throws. Analytics get two values: whether an entry came from the form or from text, and how many fields the text filled (0 to 4). The sentence itself stays in Notes on the phone.

The takeaway

"Use AI" wasn't an option here, and that turned out to be useful. A narrow domain (four fields, twelve triggers, a 1 to 5 scale) fits in rules you can test one by one, and the parser's test folder has close to 300 cases. Because the parser only fills the form, it can be wrong without doing damage: you see what it filled and fix it before saving. An on-device model could still sit on top of it later, but the rules come first.