So I need a simple way to pull ten words from before and after a search term in a paragraph, and have it extract all of it into a sentence.
example:

paragraph = 'The domestic dog (Canis lupus familiaris or Canis familiaris) is a member of genus Canis (canines) that forms part of the wolf-like canids, and is the most widely abundant carnivore. The dog and the extant gray wolf are sister taxa, with modern wolves not closely related to the wolves that were first domesticated, which implies that the direct ancestor of the dog is extinct. The dog was the first domesticated species and has been selectively bred over millennia for various behaviors, sensory capabilities, and physical attributes.'

input


wolf


output


most widely abundant carnivore. The dog and the extant gray wolf are sister taxa, with modern wolves not closely related to
You can try using substring after finding the position of the target word. Have you tried to code anything so far?
How do I pull a number of words around a specific word in python?