I found this post: Help creating a script to tag products with keywords from product titles. Using the code with the adjustments the script runs, but not well. I am hunting keywords in course descriptions for a sustainability tracking and awards system.
The problem is when this searches for keywords it's too literal. If the course description has "...equal.." then it will attach that link. If the description has "...equality..." it will not. Originally the keyword list had the asterisk wildcard, which meant there was a lot of things it wasn't finding because it doesn't seem to recognize that as a wildcard, but that lack of wildcard means it's missing possible links now. I would prefer not to add every iteration of "equal" to my keywords list though.
How do I address the problem I’m experiencing programmatically?