Categorization
Hoopoe categorizes transactions two ways: rules that run on every
import, and manual assignment via the Sort tab. Every
transaction carries a source tag — auto, default, or manual —
that decides who owns its category the next time rules are re-applied.
This page walks through both paths, how the internal-transfer
category flag keeps internal moves out of your income and expense
totals, and what "regenerate categories" actually does.
The rule engine
Rules are keyword-to-category assignments configured in Rules. On
every import Hoopoe walks your enabled rules in priority order (highest
first, ties broken by rule id) and stamps the first matching rule's
category onto the transaction. Unmatched transactions fall into the
built-in Divers (default) category.
Matching is:
- Accent- and case-insensitive.
carrefour,CARREFOUR, andCarrefourall match — Hoopoe normalises both the keyword and the transaction label before comparing. - Whole word by default.
payewon't matchpayweb. Switch a rule to Substring for a looser match, or to Regex for full control (the pattern is applied to the already-normalised label). - Sign-guarded. A rule can be restricted to positive-only or
negative-only amounts. That's how you keep a
salairerule from catching a refund on your credit card, or acarrefourrule from catching a refund from Carrefour.
Create rules from the Rules page: type one or several keywords (comma-separated), pick a category, set the match mode, sign constraint, and priority. Every keyword becomes its own rule pointing to the same category.
The Sort tab
The Sort tab is where you deal with everything the rules didn't catch.
Hoopoe groups uncategorised transactions (and transactions that fell
into Divers) by normalised label — so CARREFOUR CITY 12/03 and
CARREFOUR MARKET 04/06 land in the same bucket — and sorts the
buckets by frequency, so the biggest wins are always at the top.
Bulk assignment
Tick the checkbox next to each group you want to handle, pick a category from the Bulk dropdown, and click Apply to selection. Every transaction in every selected group is assigned in one shot.
Single-group assignment
Prefer to eyeball one bucket at a time? Each row has its own category dropdown and an Apply link on the right. Same effect, one group at a time.
Turn an assignment into a rule
The Create rules checkbox (on by default) tells Hoopoe to also
create a rule for the group's normalised label as it assigns. That
way, next month's CARREFOUR CITY 04/07 gets picked up automatically
at import time — you only pay the sorting cost once per merchant.
Uncheck the box to sort without leaving rules behind.
Regenerating categories
The Recategorize button (top-right on both Rules and Sort) replays every enabled rule against every existing transaction. Use it after adding new rules, changing priorities, or importing history from before those rules existed.
By default, manual choices are preserved: only transactions with
source auto (previously matched a rule) or default (fell into
Divers) are re-evaluated. Anything you touched by hand keeps its
category. The result banner shows four counters: total scanned,
recategorised, still-unknown, and preserved manual.
Internal transfers
When you move money between two of your own accounts, both legs land in your imports as ordinary expense and income lines. The clean way to keep those from inflating your totals is to route them through a category flagged as an internal transfer (in Rules → Categories, tick "Internal transfer" on categories like "Épargne" or "Virement interne"). Transactions carrying such a category are excluded from monthly averages and donut aggregates.
Older data may carry a transfer_group_id from the previous
rule-driven detector — that column is kept so historical groups
still filter out correctly, but no new groups are created on import.
Auto-splits from rules
A rule normally stamps one category on a matched transaction. When
the same merchant covers systematically distinct expense buckets — a
mixed retailer (Amazon → 70 % Books / 30 % Electronics), a
work-and-personal restaurant tab, a hypermarket with a fuel pump —
you can turn a rule into split mode so every match is ventilated
automatically across N pre-declared percentages.
Turning split mode on. In the Rules page, tick Ventilation multi-catégories on the quick-add form (or in a rule's Advanced editor). A small percentage table appears: two rows minimum, twenty maximum, each with a category and an integer percentage between 1 and 99. The Somme indicator turns green when the row sums to exactly 100 %; the submit button stays disabled until it does. The rule still keeps its top-level Catégorie field — that "primary" category is what the transaction row will show in listings and what single-category filters key off.
On import. A matching transaction gets N split rows
(transaction_splits) whose amounts scale against the parent — cents
math with a last-row-absorbs-drift correction so a €10.03 split
across 33 / 33 / 34 lands exactly on €3.31 / €3.31 / €3.41. The
parent's category_source is auto, and a new
splits_source column is also set to auto — that's the flag the
engine checks on later re-runs to know it may safely regenerate the
ventilation.
Editing what a rule produced. Open the transaction and edit any
row in the Ventilation par catégorie editor (change an amount,
swap a category, add a row, delete one). Saving flips
splits_source to manual on the parent — the "Automatique" tag
that decorates auto-generated ventilations disappears, and the
engine will never touch that transaction's splits again on a
Recategorize pass, regardless of the preserveManual flag. This is
the ownership boundary: an auto-generated split is a suggestion the
engine keeps consistent; a manually edited one is yours.
Changing the rule after the fact. Bumping the percentages on a
split rule does not retroactively re-shuffle every past transaction
— hit Recatégoriser l'historique to reapply. Auto-generated
splits (splits_source='auto') are regenerated with the new ratios;
manual ones (splits_source='manual') are preserved.
Reverting a rule to single-category. Turning the toggle off in the Advanced editor and saving sends the "clear splits" signal — the child percent rows disappear on the backend, the rule falls back to stamping just its primary category, and a subsequent Recategorize pass clears the auto-generated splits from any transactions the rule previously ventilated (leaving manually edited ones untouched).
Re-importing the same file is safe — dedup skips the rows that are already there, so both auto and manual splits survive unmodified. New transactions from the file are ventilated by the rule if it still matches, at the current percentages.
How sources interact
Every transaction stores a source that tells Hoopoe where its category came from:
auto— assigned by the rule engine at import time.default— fell through every rule and landed inDivers.manual— you set the category, either from the Sort tab, from a transaction's inline edit, or in the transaction modal.
The source drives two behaviours:
- Editing. Assigning a category on a transaction — inline in the
table, in the modal, or via the Sort tab — flips its source to
manual. Retroactive rule re-application then leaves it alone. - Re-importing. Re-importing the same file is safe: dedup skips
the rows that are already there (see Importing), so
your manual choices survive re-imports untouched. New transactions
in the file are categorised by the rule engine and start life as
autoordefault— nevermanual.
To wipe manual overrides and start fresh, run Recategorize and
pass {"preserveManual": false} on the API call directly — the UI
always uses the safe (preserving) mode.