Recursive tagging

Hello,
I'm trying to use Hazel for auto-tagging files I drop into a folder based on a lookup table. I can parse the filename against the table and tag accordingly but this only allows me to run the rule once whereas I want to be able to match all instances of words matched in the table and tag accordingly.
For instance, the lookup column in my table might have "table", "chair", "carpet" so for a filename labelled "The chair and table sat on the carpet" I'd like the file to be tagged with "table", "chair" and "carpet"... at the moment Hazel matches against the first found item (in this case "chair"), tags the file "chair" and moves on...
How can I parse the filename from beginning to end and repeatedly look for words that match and add tags for each word found?
Any ideas?
Many thanks,
David
I'm trying to use Hazel for auto-tagging files I drop into a folder based on a lookup table. I can parse the filename against the table and tag accordingly but this only allows me to run the rule once whereas I want to be able to match all instances of words matched in the table and tag accordingly.
For instance, the lookup column in my table might have "table", "chair", "carpet" so for a filename labelled "The chair and table sat on the carpet" I'd like the file to be tagged with "table", "chair" and "carpet"... at the moment Hazel matches against the first found item (in this case "chair"), tags the file "chair" and moves on...
How can I parse the filename from beginning to end and repeatedly look for words that match and add tags for each word found?
Any ideas?
Many thanks,
David