This PR can be summarized in the following changelog entry:
Fixes the bug when a compound keyphrase with a hyphen would not be recognized in the slug.
Relevant technical choices:
The currently implemented algorithm splits a compound word in two and thus counts it as two separate words. So the keyphrase awesomest video-games would be treated as three separate words in the keyphraseInSlug assessment (awesomest, video and games) and matching just video-games in a slug would be enough to score a green bullet.
Test instructions
This PR can be tested by following these steps:
Check if keyphrases with hyphens are correctly recognized in the slug
Try combining words with and without hyphens in the keyphrase and see if they are correctly recognized in the slug
Check if keyphrases without hyphens are correctly recognized in the slug
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
awesomest video-games
would be treated as three separate words in the keyphraseInSlug assessment (awesomest
,video
andgames
) and matching justvideo-games
in a slug would be enough to score a green bullet.Test instructions
This PR can be tested by following these steps:
Fixes #2121