{"slug": "i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard", "title": "I rebuilt my spreadsheet Q&A app for Android. Reading Indian numbers was the hard part.", "summary": "A developer rebuilt LUMIQ, a spreadsheet question-answering app, as an Android app that opens CSV and Excel files directly from WhatsApp and answers plain-English questions entirely on-device. The main engineering challenge was parsing Indian number and date formats such as lakh-style figures, parenthesized negatives and ambiguous day/month dates, which the app resolves by inferring meaning from the whole column and prompting the user when it can't. Every figure is computed in code over all rows, and the language model's sentence is checked so each number must match the calculated result, including row-specific values, before the answer is shown.", "body_md": "Earlier this year I built LUMIQ as a browser app. You drop in a CSV, ask it a question in plain English, and it answers. It worked fine on a laptop.\n\nThen I thought about who actually keeps their business in a spreadsheet. A shop owner with the month's sales. A teacher with the fee register. Those files don't live on a laptop. They show up on WhatsApp and get opened on a phone.\n\nSo LUMIQ is an Android app now. You tap a CSV or Excel file in WhatsApp, pick **Open with LUMIQ**, and ask something like \"which item sold the most?\". You get a sentence back, and every number in it has been worked out on the phone from all the rows and checked before you see it. The file itself never leaves the phone.\n\nI assumed the AI would be the hard part. It wasn't.\n\nA few things real Indian sheets contain:\n\n| In the file | What it means | \n|---|---|\n| `₹1,85,000.50` | one lakh eighty-five thousand, and 50 paise | \n| `Rs. 480/-` | 480 rupees | \n| `(120)` | minus 120, it's a return | \n| `1,5` in a column of`2,75` and`0,9` | one and a half | \n| `01/02/2026` | 1 February or 2 January? | \n| `Total` on the last row | not a row at all | \n\nWhat made this manageable was not deciding what a cell means by looking at the cell. Each cell gets read every way it could be meant (\"1,234\" is one thousand two hundred and thirty-four, or one point two three four), and then the whole column decides. If the rest of the column uses a comma as the decimal mark, so does this cell.\n\nWhen the column can't settle it, the app asks. If every date in a column has both parts at 12 or under, `01/02/2026` really could be either, and a guess there gives you an answer that looks right and isn't. So you get a small \"day first or month first?\" screen instead. One tap, and nobody has to trust a coin flip.\n\nThe `Total` row at the bottom gets left out as well. Otherwise every sum counts it twice, and people would trust the app right up until it doubled their sales.\n\nEvery number comes from code running on the phone, over every row. The language model only gets the calculated result and turns it into a sentence. Then the sentence gets checked: each number in it has to match the result at the precision it was written, so `4.68M` is allowed to match `4,677,000` and `20%` can match `19.99`.\n\nThe bit I'm happiest with is that a number tied to a row has to match *that* row. If the answer says \"October 1,200 and September 900\" and the data has them the other way round, it fails, even though both numbers exist somewhere in the table. Checking against \"any value in the table\" is too easy to pass with the wrong answer.\n\nWhen everything lines up, you see **4 of 4 numbers checked on your phone** under the answer.\n\nThe web app and the Android app run the same JavaScript engine: reading files, column types, the calculations, forecasts, the number checker. It has 390 unit tests. The app itself is Expo SDK 58, React Native 0.88 and Reanimated 4.\n\nSharing the engine means a fix made for the phone fixes the web app too, and the two can't quietly drift into giving different answers to the same question.\n\nSums, charts, the Story view, File check and What if all work offline. If you use Ask, LUMIQ sends the question you typed, your column names with a short summary of each, and the calculated result it should write about. Not your rows. It asks before it does that, and you can say no.\n\nAsk goes through a small Supabase function to Groq. I started on Llama 3.3 70B, but that's Enterprise-only on Groq now, so it runs on GPT-OSS 120B. You get 20 questions a day.\n\nFor now it's an APK on GitHub rather than a Play Store listing: 66 MB, free, Android 7 or newer. Android will ask you to allow the install.\n\nIf you have a sheet LUMIQ reads wrong, I'd honestly like to see it. Messy files are the whole point.", "url": "https://wpnews.pro/news/i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard", "canonical_source": "https://dev.to/saksham653/i-rebuilt-my-spreadsheet-qa-app-for-android-reading-indian-numbers-was-the-hard-part-48gd", "published_at": "2026-11-26 14:08:42+00:00", "updated_at": "2026-11-26 14:15:59.531984+00:00", "lang": "en", "topics": ["ai-products", "ai-tools", "large-language-models", "ai-agents"], "entities": ["LUMIQ", "Groq", "Supabase", "Llama 3.3 70B", "GPT-OSS 120B", "Expo", "React Native", "GitHub"], "also_reported_by": [], "takeaway": "Resolve ambiguous cell formats by reading each cell every possible way and letting the whole column decide, then verify each number in the LLM's answer against the computed result at its written precision, including row-specific matches.", "recommendation": {"advice": "Compute all figures in code over every row and let the LLM only phrase results, then reject any answer whose numbers don't match the computed values at the written precision, including row-specific pairings.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard", "markdown": "https://wpnews.pro/news/i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard.md", "text": "https://wpnews.pro/news/i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard.txt", "jsonld": "https://wpnews.pro/news/i-rebuilt-my-spreadsheet-q-a-app-for-android-reading-indian-numbers-was-the-hard.jsonld"}}