uttrflow / uttrflow/uttrflow-swift
A negative word count in a readable history record crashes the accuracy calculation
Open
area:dictation
bug
P2
- Dominant language
- Swift
- Stars
- 4
- Forks
- 17
- Avg merge
- 3h 32m
- Merged PRs (30d)
- 277
Description
## Problem
`RecordedChanges` accepts a negative `spokenWords` from JSON. `correctedWords` then constructs `0..
Contributor guide
Research direction
Start with Sources/UttrflowHistory/Corrections.swift at lines 123 and 143, then trace the accuracy call in Sources/UttrflowUX/MainDictationPresentation.swift at line 348. Run the negative-count reproduction and inspect the existing history tests. Done means a negative count cannot trap or produce a zero-word accuracy result, while a healthy record remains usable and the mixed-record Dictation-page case is covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, swift
- Domain
- data, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100