Detecting which words are the same between two pieces of text
You can use dictionary to first store words from first text and than just simply look up while iterating the second text. But this will take space.
So best way is to use regular expressions.
I need some python advice to implement an algorithm.
What I need is to detect which words from text 1 are in text 2:

Text 1: "Mary had a dog. The dog's name was Ethan. He used to run down
  the meadow, enjoying the flower's scent."
Text 2: "Mary had a cat. The cat's name was Coco. He used to run down
  the street, enjoying the blue sky."

I'm thinking I could use some pandas datatype to check repetitions, but I'm not sure.
Any ideas on how to implement this would be very helpful. Thank you very much in advance.