I need to check for the presence of one keyword from the list of words. If the list is small, I can explicitly list all the keywords
ticker = CaselessKeyword('SPY') | CaselessKeyword('QQQ')
ticker.run_tests(['SPY', 'QQQ'])
But what is the correct solution if the list is really large (10k-100k keywords) and we want to be sure that in this place there is one of these words and only it?