When implementing the dictionary lookup implementation of the word replace functionality, while speed was increased the ability to block by banned phrases was lost. The complexity of going through every combination and/or permutation even within a word limit is too costly and drastically slows down the program.
Goal is to make a better algorithm to check for a word that is part of a spoiler phrase (i.e. sleeping with the fishes)
When implementing the dictionary lookup implementation of the word replace functionality, while speed was increased the ability to block by banned phrases was lost. The complexity of going through every combination and/or permutation even within a word limit is too costly and drastically slows down the program.
Goal is to make a better algorithm to check for a word that is part of a spoiler phrase (i.e. sleeping with the fishes)