RWET – APIs

I continued to work with headlines and news. This time I used an API to grab the most popular headlines on NYTimes.com and pick a random word to replace with a definition from Oxford dictionary. Sometimes the results don’t make sense but every now an then an interesting replacement occurs. Here are some examples of the output (my favorites are in bold):

Old Headlines:

A Quiet Giant of Investing Weighs In on Trump

Mexico City, Parched and Sinking, Faces a Water Crisis

You May Want to Marry My Husband

Steve Bannon Carries Battles to Another Influential Hub: The Vatican

Lessons on Aging Well, From a 105-Year-Old Cyclist

What a Failed Trump Administration Looks Like

Why Nobody Cares the President Is Lying

A Crack in an Antarctic Ice Shelf Grew 17 Miles in the Last Two Months

Lower Back Ache? Be Active and Wait It Out, New Guidelines Say

36 Hours in San Diego

How New York City Gets Its Electricity

7 Earth-Size Planets Orbit Dwarf Star, NASA and European Astronomers Say

Trump Campaign Aides Had Repeated Contacts With Russian Intelligence

Mental Health Professionals Warn About Trump

Ignorance Is Strength

Keep or Replace Obamacare? It Might Be Up to the States.

How Uber Deceives the Authorities Worldwide

New Headlines:

A Quiet Giant of Investing Weighs In on a trumpet or a trumpet blast

Mexico City, Parched a Boolean operator which gives the value one if and only if all the operands are one, and otherwise has a value of zero Sinking, Faces a Water Crisis

used to refer to the person or people that the speaker is addressing May Want to Marry My Husband

Steve Bannon Carries Battles to Another having great influence on someone or something Hub: The Vatican

Lessons on Aging Well, From used when mentioning someone or something for the first time in a text or conversation 105-Yeused when mentioning someone or something for the first time in a text or conversationr-Old Cyclist

What a Failed Trump the process or activity of running a business, organization, etc. Looks Like

a reason or explanation Nobody Cares the President Is Lying

A very good or skilful in an Antarctic Ice Shelf Grew 17 Miles in the Last Two Months

Lower Back Ache? Be engaging or ready to engage in physically energetic pursuits and Wait It Out, New Guidelines Say

36 Hours in relating to the San or their languages Diego

How New York a large town Gets Its Electricity

7 Earth-Size Planets Orbit Dwarf Star, NASA and relating to or characteristic of Europe or its inhabitants Astronomers Say

Trump Campaign Aides Had Repeated Contacts accompanied by (another person or thing) Russian Intelligence

Mental Health Professionals Warn on the subject of; concerning Trump

Ignorance Iceland (international vehicle registration) Strength

Keep or Replace Obamacare? It Might Be Up used with the base form of a verb to indicate that the verb is in the infinitive, in particular the States.

How Uber Deceives denoting one or more people or things already mentioned or assumed to be common knowledge Authorities Worldwide

If I run it again, It will often yield different results with the same headlines:

 

New Headlines:

A making little or no noise Giant of Investing Weighs In on Trump

Mexico City, Parched and Sinking, Faces a pour or sprinkle water over (a plant or area) in order to encourage plant growth Crisis

You May Want to join in marriage My Husband

What a Failed Trump the process or activity of running a business, organization, etc. Looks Like

Why Nobody Cares the the elected head of a republican state Is Lying

A Crack in the form of the indefinite article (see a) used before words beginning with a vowel sound Antarctic Ice Shelf Grew 17 Miles in the Last Two Months

in what way or manner; by what means New York City Gets Its Electricity

36 Hours in a borough of New York City, at the south-western corner of Long Island. The Brooklyn Bridge (1869\u201383) links Long Island with lower Manhattan

7 Earth-Size Planets Orbit cause to seem small or insignificant in comparison Star, NASA and European Astronomers Say

Trump Campaign Aides Had Repeated Contacts With Russian the ability to acquire and apply knowledge and skills

Mental Health Professionals inform someone in advance of a possible danger, problem, or other unpleasant situation About Trump

lack of knowledge or information Is Strength

Keep or Replace Obamacare? used to refer to a thing previously mentioned or easily identified Might Be Up to the States.

How Uber Deceives denoting one or more people or things already mentioned or assumed to be common knowledge Authorities Worldwide

 

Leave a Reply

Your email address will not be published. Required fields are marked *