diff --git a/parser.rb b/parser.rb index adaad3e..7ffbbd3 100644 --- a/parser.rb +++ b/parser.rb @@ -1,3 +1,11 @@ def word_in_string?(word, string) # implement with your code here + unless string.match(/(?i)(?<=^|[^a-z])#{word}(?=$|[^a-z])/i).nil? + :yes + else + :no + end end + + +