What is the most effective parameters should be there, for user's url-address or domain-names auto-corrections ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the most effective parameters should be there, for user's url-address or domain-names auto-corrections ?

like how far the first letter is important? or the length of the user-input comparing to the list of registered names? or what else? I already have done letters matching with the maximun matches. https://code.sololearn.com/cnfPPt1k9k4k/?ref=app

17th Feb 2021, 9:52 AM
Azad m. A.
Azad m. A. - avatar
2 Answers
+ 3
You should just chenge the user input to lowercase and check it against each letter of each url w/ nested for loop. Keeping a counter of matches. The one with the most matches will be your search result. You should also look up how DNS works
17th Feb 2021, 10:02 AM
Slick
Slick - avatar
+ 1
Thanks, Slick...I am honestly about reaching that how the current DNS works but I d like to work on it, learning from python developers around. I guess that their DNS is still using Java or c++ ...I would like to build a parameter includes all that issues.. The main DNS translates it to IP address, if valid. the minor or closer DNS which is called cached DNS relys on roamed data...but my that project aims to help the unfamiliar users directed to the destination away from Search Engines emerged intrests... Thanks , again.
17th Feb 2021, 10:30 AM
Azad m. A.
Azad m. A. - avatar