Skip to content

Conversation

@paul-hammant
Copy link

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)

  1. "headline": "Report: turns out Einstein was wrong"
    could have a hash of "#report-turns-out-einstein-was-wrong"

  2. "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"

  3. "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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant