reading_progress 0.0.1
reading_progress: ^0.0.1 copied to clipboard
A pure Dart engine for verified reading progress — confident-word milestones, active-dwell tracking, and reading-speed calibration.
Changelog #
0.0.1 #
- Initial release.
- Pure Dart reading-progress engine: event-sourced reducer, confident-word accumulation (points + milestones), active-dwell engagement policy, per-book WPM calibration (Brysbaert-seeded EMA), page-completion gate (dwell + skim rejection), calibration period, session reading time, book-completion detection.
- Presence-based engagement: silent reading is credited via heartbeat
Tickevents within an idle cutoff (not just taps/scrolls).StepEngagementPolicycaps a step;idleCutoffMs/maxStepMsconfigurable. - Last content page completes on finish / reader-close (any exit), since it has no forward page-turn — books can now reach 100%.
- Partial per-page dwell resumes across revisits (
ReadingState.partials) — glancing ahead and returning never resets a page. Genre.unknown(default) → neutral seed for books with no genre.- Swappable strategies:
ReadingSpeedModel,EngagementPolicy,CompletionPolicy.