Hi Joe. Is this sort of thing OK for #676 ?
(jest tests pass)
I'd want deterministic logic that can override defaults.
Scenarios (all in the same timeline)
"headline": "Report: turns out Einstein was wrong"
could have a hash of "#report-turns-out-einstein-was-wrong"
"headline": "Opinion: Soccer matches ending in nil-nil leaves fans bitter"
could have a hash of "#opinion-soccer-matches-ending-in-nil-nil-leaves-fans-bitter"
"headline": "Eurovision song contest won by Ukraine"
could have a hash of "#event-eurovision-song-contest-won-by -ukraine"
To achieve that I'd have deterministic logic to look for "Report" and "Opinion" at the start of a headline for custom hashes, but default to "Event" (as now) for situations where I can't pick out either of those two alternates.
Hi Joe. Is this sort of thing OK for #676 ? (jest tests pass)
I'd want deterministic logic that can override defaults.
Scenarios (all in the same timeline)
"headline": "Report: turns out Einstein was wrong" could have a hash of "#report-turns-out-einstein-was-wrong"
"headline": "Opinion: Soccer matches ending in nil-nil leaves fans bitter" could have a hash of "#opinion-soccer-matches-ending-in-nil-nil-leaves-fans-bitter"
"headline": "Eurovision song contest won by Ukraine" could have a hash of "#event-eurovision-song-contest-won-by -ukraine"
To achieve that I'd have deterministic logic to look for "Report" and "Opinion" at the start of a headline for custom hashes, but default to "Event" (as now) for situations where I can't pick out either of those two alternates.