Skip to content

Instantly share code, notes, and snippets.

@yamatt
Last active July 17, 2023 22:16
Show Gist options
  • Save yamatt/6c34bc67c8e75c47a74c16c91f43f4b6 to your computer and use it in GitHub Desktop.
Save yamatt/6c34bc67c8e75c47a74c16c91f43f4b6 to your computer and use it in GitHub Desktop.
A list of regex to detect clickbait headlines.
/^watch/gi # Example: "Watch this amazing video of a panda doing a backflip"
/^[0-9]{1,2}/gi # Example: 10 ways to save money while doing yoga
/you won\'t believe/gi # self explanatory
/\?$/ # Betteridge's law of headlines. No? https://en.wikipedia.org/wiki/Betteridge%27s_law_of_headlines
/^that time/gi # That time a plane fell out of the sky
/^Must watch/gi # A must watch video? Really? Is it? Probably not
might # if a headlines contains "might", why is it even news?
trick # if it's a trick, it won't work
amazed # why would a headline tell you what to feel?
shock # same as above
weird # Example: This one weird trick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment