Expense categories

Wrong Auto-Category? Teach the App Once and It Sticks

A hospital bill filed under shopping? Fix a wrong auto-category, make the correction stick and set rules for merchants that keep going wrong.

Editorial illustration for Wrong Auto-Category? Teach the App Once and It Sticks

If an expense app files a hospital bill under shopping, correct that one row and then check whether the app learns from it. In SpendixAI, categorisation uses your own rules first and your history next, and your corrections become history, so one fix helps later rows from the same merchant. For merchants that keep going wrong, write a rule.

Why does it go wrong?

A merchant name can look like a retail brand while the business is a clinic, a pharmacy or a pathology lab. A large hospital may sell medicines, rooms and cafeteria items under one name. A bank may shorten the narration so the clue is gone. The software reads a name and an amount, not the purpose of your visit.

Fix it in the right order

  1. Open the wrong row and change its category to the correct one, for instance Health.
  2. Check whether similar rows from the same merchant in earlier months need the same change.
  3. If the merchant name appears in several spellings, add an alias so they point to one name.
  4. If you always want that merchant in that category, add a rule.
  5. Import the next statement and check that the row lands correctly.

A worked example with made-up numbers

Say a hospital charge of ₹8,400 landed in Shopping, along with a pharmacy purchase of ₹650 from the same group. Shopping now looks ₹9,050 higher than it should, and Health looks lower by the same amount. After correction:

RowBeforeAfter
Hospital bill 8,400ShoppingHealth
Pharmacy 650ShoppingHealth
Shopping total change+9,0500
Health total change0+9,050

The totals now reflect what the money was for. If your monthly budget for Shopping was ₹10,000, the wrong category would have shown you nearly out of budget for no reason.

When should I write a rule instead?

Use a rule when a merchant is always the same kind of spend, such as your regular clinic. Do not write one for a merchant that sells a mix, because a rule will treat every line the same way. For those, correct row by row and let history do the work.

  • Rule: a fixed payee that always means one thing.
  • History: a merchant you fix once and expect to learn.
  • Alias: one merchant with several spellings.
  • Manual fix: a one-off or mixed-purpose merchant.

Keeping medical spending together

Many families want one view of medical costs across the year. Use a Health category, and a sub-category for each person or type if you like, then keep receipts attached to the transactions so the bill and the entry stay together. Whether any of it matters for tax is a question for your CA, who will tell you what records they need.

What to check if it keeps coming back

If the same merchant lands in the wrong category after you fixed it, look for three causes. First, the narration may be different this time, so the app does not see it as the same merchant; add an alias. Second, a rule you wrote earlier may be winning because your own rules are applied first; open your rules and look for one that matches the same text. Third, the import may have come from a different account, with a different layout. Fix the rule or alias, then correct the row once more.

A quick review

Once a month, open the largest rows in each category and see whether any look out of place. Five minutes of that catches most errors, and each correction improves the next import.

SPENDIXAI JOURNAL

Useful ideas start with a clearer picture of your own spending.

Explore your reports