One sentence, one split bill: how Settl does it, and where the model stops
The short version
Settl splits a bill from one spoken sentence. The model never does the maths. It only fills in a form: who paid, how much, and who was there. Plain code then does every calculation in whole cents, so the parts always add back to the total.
That split of jobs is the whole idea, and it works for any app where a number has to be right.
| Step | Who does it | What you see |
|---|---|---|
| Hear "Dinner, eighty dollars, split four ways" | The phone sends your voice as audio | A listening screen |
| Turn it into a form | A model returns a structured form | Dinner, 80, you paid, four people, equal |
| Match names ("Leah" → Leo) | Code compares sounds and your group | Leo is picked, or you are asked |
| Divide the money | Plain code, in whole cents | 20.00 each |
| Confirm | You | Nothing is saved until you tap confirm |
Why the model does not do the maths
A model is good at understanding a sentence and bad at being exactly right every time. So the sentence goes in, a form comes out, and the form is checked and handed to ordinary code. If the model gets a field wrong, you see it on the form before anything is saved. If it were doing the division, you would only see a wrong number.
The model supplies the numbers you said (the amount, or exact amounts if you named them). It never decides how to divide.
The cent that does not exist
Eighty dollars four ways is easy: 20.00 each. A hundred dollars three ways is 33.333… forever, and there is no such thing as a third of a cent. So the code works in whole cents:
| Person | Share |
|---|---|
| Maya | 33.33 |
| Leo | 33.33 |
| Sam | 33.34 |
| Total | 100.00 |
The leftover cent goes to one person by a fixed rule, so asking twice gives the same answer. The shares always add back to exactly the total.
Names are messy
"Leah" is not in your group, but Leo sounds the same. Settl compares how names sound, how close they are in spelling, who is in this group and who you split with recently. A clear match is picked. An unclear one is asked, never guessed.
Receipts
Snap a receipt and say who had what ("Sam had no drinks"). The receipt is read line by line, the lines are checked against the receipt's own total, and then your sentence splits them. If the lines do not add up, you find out before you confirm.
Switching from Splitwise
Splitwise lets you export each group as a spreadsheet, one column per person. Settl turns those columns back into who paid and who owes, and asks before it matches a name it is not sure of. It takes about a minute. It only reads the file you exported, so your Splitwise account stays untouched.
Try it
You can see Settl at settl.fyi.
Copy these prompts
Paste them into Claude Code (or any AI that can see your project). They apply the same idea to your own app.
1. Find where my app lets the model do the maths
Look through my project for every place a language model produces a number that is then shown or saved (totals, splits, prices, counts, dates). For each one, tell me whether the model chooses the number or whether code computes it from values the model only extracted. List the ones where the model chooses, and say what could go wrong with each.
2. Turn one of them into "model fills a form, code does the work"
Take this feature: [describe it]. Redesign it so the model only returns a structured form (a strict schema with named fields), and ordinary code does the calculation from those fields. Show me the schema, the validation that runs before anything is saved, and the function that does the maths. Keep the model's output visible to the user for a confirm step.
3. Check my money maths for lost cents
Find every place my code divides, multiplies or rounds money. Tell me whether it uses floating point or whole cents, and test what happens when an amount does not divide evenly (100.00 split three ways, 0.01 split two ways, 10.00 split seven ways). Show me any case where the parts do not add back to the total, and fix it so they always do.
If you are building something like this
The pattern is small. Keep three rules and the rest is detail.
| Rule | In practice |
|---|---|
| The model returns a form, not an answer | A strict schema: amount, who paid, who is in, how to split |
| Code does the maths in the smallest unit | Whole cents, never decimals |
| Unsure means ask | A fuzzy name match or a receipt that does not add up goes back to the user |
A whole-cents split in a few lines, with the check that makes it safe:
// split a total (in cents) between n people; the parts always add back to the total
function splitCents(total: number, n: number): number[] {
const base = Math.floor(total / n);
const extra = total - base * n; // leftover cents
return Array.from({ length: n }, (_, i) => base + (i < extra ? 1 : 0));
}
const parts = splitCents(10000, 3); // [3334, 3333, 3333]
console.assert(parts.reduce((a, b) => a + b, 0) === 10000);
Which person gets the leftover cent is a rule you choose. Pick one and keep it fixed.
Run this on your codebase
Review my project for the "model fills a form, code does the work" pattern. For every feature that uses a language model, tell me: what it returns, whether any number it returns is used without being checked, where money or counts are computed and in what unit, what happens when a name or value is ambiguous, and what the user sees before anything is saved. Give me the three riskiest places first and a concrete fix for each.