Let's say I have a string containing words. Some of these words may be compound words.
I also have a MySQL database which contains a table which contains a column called words. This column may contain words that appear in my string, including compound words.
I would like to be able to find out which rows to retrieve from the database, when I only have the string. Splitting it on space characters is not an option, because this will make it impossible to detect if any compound words from the database appear in the string.
Any suggestions as to how to solve this issue?