Uses Wikipedia API to generate 3 SEO keywords per title considering hyphenated terms as single words.
The provided Python function generates SEO-optimized keyword phrases from blog titles using the Wikipedia API and considers hyphenated terms as single words. The function accepts a list of blog titles as input and returns a list of 3 keywords for each title.
Function Definition
The given code defines a `generate_keywords()` function that takes a list of blog titles as input and returns a list of 3 keywords for each title.
Usage
The example shows how to call the `generate_keywords()` function with a list of blog titles, and print the generated keywords.