How can i find wrong word in search box and replace with correct word

Question

I have a search form and Many site users search for the wrong words, I want to replace these wrong words with the right ones so that users can get results faster.

I have been searching for this for several days but unfortunately I did not find any results.

I’m looking for a way if a user types wrong words like this

i love axqple
i love vaple
i love aple
i love applle
i love aplle

Replace the wrong text with Apple.

I have already checked things like the this tutorial and this topic but have not reached a conclusion

I also looked at these cases:

function str replace

find word in variable and replace with another

search string for specific word and replace it

And many more…

Given this explanation, does anyone have a solution, educational content or any tips

Thanks for any help

0
alam7o 2 years 2020-12-29T05:10:18-05:00 0 Answers 2 views 0

Leave an answer

Browse
Browse