检测拼写错误的单词单词、错误

2023-09-11 04:34:52 作者:伤"不过如此

我有机场名称的列表,我的用户有可能进入一个机场名称来选择它获得进一步的处理。

I have a list of airport names and my users have the possibility to enter one airport name to select it for futher processing.

你会如何处理拼错的名称和present的建议清单?

How would you handle misspelled names and present a list of suggestions?

推荐答案

查找莱文斯坦距离来匹配正确的名称对一个给定的用户输入。

Look up Levenshtein distances to match a correct name against a given user input.