I have changed the search algorithm of the original.
I use the Aho-Corasick algorithm and the N-gram algorithm.