<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Applemsan on Medium]]></title>
        <description><![CDATA[Stories by Applemsan on Medium]]></description>
        <link>https://medium.com/@applem2san?source=rss-809c446eed2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eXX_RxdIZI6wJPs5</url>
            <title>Stories by Applemsan on Medium</title>
            <link>https://medium.com/@applem2san?source=rss-809c446eed2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:11:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@applem2san/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Would You Let an AI Read Every Bank SMS You Get?]]></title>
            <link>https://medium.com/@applem2san/would-you-let-an-ai-read-every-bank-sms-you-get-41db6ca193cd?source=rss-809c446eed2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/41db6ca193cd</guid>
            <dc:creator><![CDATA[Applemsan]]></dc:creator>
            <pubDate>Fri, 30 Oct 2026 11:02:10 GMT</pubDate>
            <atom:updated>2026-10-30T11:02:10.991Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why my credit card app parses money with boring regex, and the one place AI is still allowed in</h3><p>Open your SMS inbox and scroll for ten seconds. You’ll probably find something like this:</p><p><em>“Rs 450 spent on your card XX4521 at SWIGGY on 11–07. Avl limit Rs 5,700.”</em></p><p>And a few messages later, from a different bank:</p><p><em>“INR 2,100.00 debited from Credit Card ending 8890 towards AMAZON. Available credit limit: INR 38,000.”</em></p><p>Same information. Amount, card, merchant, limit. Completely different sentences.</p><p>If you have two or three credit cards, your phone is quietly keeping a full record of your spending. It’s just spread across hundreds of messages, written in a dozen styles, mixed in with OTPs and “pre-approved loan” offers. Nobody reads them all. Most of us find out what we spent when the bill shows up.</p><p>I’m building <strong>bitcreds</strong>, an Android app that reads those messages and turns them into one clean view: every card, what you owe, when it’s due, and which card you should be swiping. The dashboard is the easy part. The hard part is the piece in the middle, the one that reads a raw SMS and works out what it says.</p><p>That piece is the parser. This post is about the biggest decision I had to make while building it.</p><h3>The problem: 30 dialects of “you spent money”</h3><p>The parser’s job sounds simple. Take a message, pull out four things: amount, merchant, card, and whether money went out or came in.</p><p>Then you look at real Indian bank messages. There’s no shared format. Every bank writes its own templates, and the same bank uses different ones for a debit alert, an OTP, a promo, a statement, and a due-date reminder. Banks also change templates without telling anyone.</p><p>So you’re not parsing “bank SMS.” You’re parsing 30+ dialects, and the list keeps growing.</p><p>There are two ways to handle that:</p><ol><li>Write a regex template for every format.</li><li>Hand the raw text to an AI model and ask it to return the fields.</li></ol><h3>Why AI is so tempting</h3><p>Option two looks great on paper. No templates to write. It handles formats it has never seen. A new bank changes its wording on Monday and the model just keeps working.</p><p>But this is money data. I kept coming back to four problems, and each of them was enough to rule AI out of the live path.</p><p><strong>Privacy.</strong> The whole promise of an app like this is “your messages stay on your phone.” Send every SMS to a cloud model and that promise is broken on day one. The other option is running a model on the device, which means shipping something heavy just to read a 160-character text.</p><p><strong>Correctness.</strong> A regex either matches or it doesn’t. When it fails, you get a blank field, and a blank field looks broken. An AI model can misread one digit or make up a merchant name and still hand back a perfectly formatted result. That wrong number doesn’t look wrong. It just sits in someone’s transaction history, adding up into a total they trust.</p><p><strong>Cost and speed.</strong> With AI, every message becomes a network call and a line on a bill. A regex runs instantly, on the phone, for free.</p><p><strong>Debugging.</strong> When a regex fails, I know exactly why: which pattern, which capture group, which word the bank changed. When AI gets something wrong, there’s no clean root cause. And the behavior can change next month when the model gets updated, without me touching a single line of code.</p><h3>The answer: regex live, AI offline</h3><p>So I stopped treating it as regex <em>or</em> AI. It’s regex for every live message, and AI only in the background.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FD3kSeixmX7HYVp-" /></figure><p>Here’s how a message moves through the system.</p><p>A message arrives and the parser tries every known template. If one matches, it becomes a transaction straight away. Fast, free, and the same result every time.</p><p>If nothing matches, the message isn’t thrown away. It gets saved with a field called parseStatus set to unmatched.</p><p>That one field does more work than anything else in the system. Without it, a failed parse just disappears and the user’s total is quietly wrong. With it, I have an exact list of messages the app couldn’t read, grouped by bank and format. It’s the difference between “the parser failed and nobody noticed” and “here’s what to fix next.”</p><h3>Where AI finally gets a job</h3><p>The unmatched pile is where AI comes in, offline and in batches, never on a live message.</p><p>It looks at a group of messages that didn’t match and drafts a new regex template for them, with a mapping of which part is the amount, which is the merchant, and which is the card. I review that draft once. If it’s right, it becomes a normal template, stored like every other one, and it runs the same way for every user from then on.</p><p>The next time that format shows up, it matches on the first try. The AI never has to run on it again.</p><p>One honest detail: for AI to draft a template, it has to see examples. So unmatched samples only leave the phone if the user has agreed to share them, and the personal parts (amounts, card digits, names) are masked first. The model learns the <em>shape</em> of the message, not your data.</p><h3>AI writes the rulebook, it doesn’t referee your money</h3><p>Most “AI-powered” finance apps put the model at the center and hope it’s right. I’d rather put it at the edge, doing the slow, boring work of writing rules, while the thing touching your money stays simple enough to check line by line.</p><p>AI writes the rulebook. It doesn’t get to play referee on your money.</p><p><em>This is build log #2 for bitcreds, a credit card tracker for India that I’m building in public. Next up: what happens when the same transaction shows up twice, once as an SMS and once as a notification, and how the app decides it’s one spend and not two. Follow along here or on X [@</em><a href="https://x.com/bitshitfalse">bitshitfalse</a><em>].</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41db6ca193cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>