There are a lot of threads on how to check the difference in characters between two strings using difflib, but I specifically want to know if there is a way or a module that can tell me the words deleted and added between two strings.
For example, if we have
foo = 'This is a sentence'
bar = 'I am a sentence'
I would like to know if there's a function along the lines of
deleted_words(foo, bar)
that returns a list containing "This" and "is".
Is there a module which has this functionality, or do I need to make an algorithm to do this myself?