I’m looking for a \procedure to extract sentences from tiddlers if the sentence contain any of a specific list of words. The tiddlers of interest are to be selected using tags.
Tiddler1 (tags : nature): The cat sat on the mat. The quick brown fox.
Tiddler2 (tags : nature) : The bird sat on a branch, eating a worm. The day was sunny.
Tiddler3 (tags : astronomy) : The Earth orbits the Sun. Mercury is a planet in the solar system.
If the words of interest are [quick,Mercury, day] and tags of interest is [nature], then the output should be:
Tiddler1: The quick brown fox.
Tiddler2: The day was sunny.
Any suggestions are appreciated.