I have a database containing names (in the thousands), what would be a good strategy to check them against paragraphs, like an "includes" function in javascript for example.
Simple example would be:
const paragraph = "Mr. White Rabbit, the President of the Central Bank of Wonderland stated that Wonderland is not in a recession, adding that most economic indicators are promising, and the service industry keeps creating jobs. Meanwhile Her Majesty the Queen of Hearts has insinuated that a recession will affect the well-being of her subjects urging Chancellor of the Exchequer Mr. Mad Hatter, OBE to do what's necessary to maintain their lifestyle."
const names = ["White Rabbit","Queen of Hearts", "Mad Hatter"]
A regex test could be created for a simple model, but for thousands of names, what would be the approach, to check if of x or y was mentioned in particular.