Skip to main content

Module categorize

Module categorize 

Source

Structs§

Rule
Merchant normalization + rule-based categorization. Rule-based only — no AI. Port of lib/core/categorizer.dart.

Functions§

categorize
Returns the matching rule for a merchant, or None. Priority: learned beats builtin; within one type, longest pattern first. Stable sort — ties keep caller order (a strengthening; Dart documents no stability guarantee, but all real rule sets order identically). ponytail: length is bytes, Dart length is UTF-16 units — identical for the ASCII patterns this engine actually stores; revisit if non-ASCII rule patterns ever exist.
normalize_merchant