Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

suggestion for issue 676 #790

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant