tokenize words in condition?

I’d like to create a condition which says

The Name field contains any of the words in a field from another model.

Anyone think of a way to make that happen? I’m assuming I’d need javascript to set the value of the condition?