# How can I find words in a string that are related to a given word, then associate a sentiment to that found word?

I came up with an NLP-related problem where I have a list of words and a string. My goal is to find any word in the list of words that is related to the given string.

Here is an example.

Suppose a word from the list is healthy. If the string has any of the following words: healthy, healthier, healthiest, not healthy, more healthy, zero healthy, etc., it will be extracted from the string.

Also, I want to judge whether the extracted word/s is/are bearing positive/negative sentiment.

Let me further explain what I mean by using the previous example.

Our word was healthy. So, for instance, if the word found in the string was healthier, then we can say it is bearing positive sentiment with respect to the word healthy. If we find the word not healthy, it is negative with respect to the word healthy.

healthi , healthier , healthiest , not healthi , more healthi , zero healthi