Check source code and more info on GitHub.
I have a pen. I have an apple. Ugh! Apple pen.
I have a pen. I have a pineapple. Ugh! Pineapple pen.
Apple pen; pineapple pen. Ugh! Pen-pineapple-apple-pen.
You can replace to some object temporarily, and then handle them with a wrapper.
Also note that each matched part can be replaced by more than one nodes.