Create a checker with just a test if it is in the line
def check_word_in_line(word, line):
return " {} ".format(word) in line
print(check_word_in_line("or", "I can go shopping or not")) //True
print(check_word_in_line("or", "I can go shopping for shoes")) //False