Skip to main content

Module dedup

Module dedup 

Source
Expand description

Duplicate transaction detection.

Provides three deduplication strategies:

  • Structural — exact hash match using crate::fingerprint::structural_hash. Finds transactions that are byte-for-byte identical (excluding metadata).

  • Fuzzy — approximate match using date + amount + text similarity. Finds transactions that are likely the same despite minor differences (e.g., different payee formatting between bank and ledger).

  • Fingerprint (future, Phase 1) — stable BLAKE3 fingerprint match for import deduplication across runs.

Structs§

FuzzyDedupConfig
Configuration for fuzzy duplicate detection.
FuzzyDuplicateMatch
Result of a fuzzy duplicate match.
StructuralDuplicate
Result of finding a structural duplicate.

Functions§

find_fuzzy_duplicates
Find fuzzy duplicates between new and existing transactions.
find_structural_duplicates
Find structurally duplicate transactions in a directive list.