/    Sign up×
Community /Pin to ProfileBookmark

Headline Wordlist

I’ve got a series of headlines from various media sources. I want to run each headline through a function to see if it’s relevant to my topic.

I could create a word list, say if it was about COVID for example my word list will be

COVID
COVID-19
Pandemic
Wuhan
Vaccine

Now I appreciate i might miss recognize some headlines but how can I do this and if there a better way?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@VITSUSAJul 02.2020 — Question is not clear, can you please explain what do you want exactly?
Copy linkTweet thisAlerts:
@kiwisauthorJul 02.2020 — I’m getting a list of headlines from a web service.

The web service provides a generic list of news articles including a news headlines and I want to pass each one through a function to determine if it relates to my specific topic.

I’m imagining a word list of words relating to my topic. If the headline contains anything from my word list then it will return true if not false and be ignored.

ideally it would be good to have a score if above say seven it is automatically added to my database if between five and seven flag it for review and if lower than five ignored.

I’m really wondering how my function would work, I have a headline which is a array of text. And I can Create a list of possible relative words
×

Success!

Help @kiwis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...