refactor(parser): extract text normalizer #90
Labels
No labels
area:backend
area:frontend
area:infra
area:ocr
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
phase:M1
phase:M2
phase:M3
phase:M4
phase:M5
phase:M6
phase:M7
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TJC/bill-splitter#90
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #77 (Phase A, step 2). Invariants live in the epic.
Extract line-level text normalization behind an interface, behaviour identical.
Anchors
ReceiptParser.cs:87- per-lineTrim()in the candidate loop.ReceiptParser.cs:76-Whitespace()collapse regex.ReceiptParser.cs:237-243-CleanName(note: also strips#codeand@unit- those are item-name concerns, leave them for #92, keep A2 to genericline normalization).
Steps
ITextNormalizerinParsing/Normalization+ aBasicNormalizerimplementation doing trim + whitespace collapse only.
Trim().Done