HF RL Explorer

Replace reading-time dependency with native Intl.Segmenter for word counting and reading time

Replace reading-time dependency with native Intl.Segmenter for word counting and reading time: a task in LegoFlow-SWE (Harbor dataset). The blog plugin currently depends on the reading-time npm package, imported from that package, to calculate estimated reading time. This external library: -…

The task

The blog plugin currently depends on the `reading-time` npm package, imported `from` that package, to calculate estimated reading time. This external library: - doesn’t accept a locale parameter, so it cannot provide locale-aware word segmentation; - adds unnecessary complexity and a dependency we want to drop.

Part of Lego-X/LegoFlow-SWE.