How to check and correct misspelling in the data of pairs of words? I have user generated text containing names of ports often containing typos and the actual port names. I would like to correct the misspelling of user generated text containing the names of ports. Can anyone help me think of some ideas or steps to take?
Perhaps using word2vec? RNN?

thank you in advance.
Another way to reframe the problem is approximate/fuzzy string matching. FuzzyWuzzy is an approximate/fuzzy string matching package for Python. The package can find the nearest element in a set to a user's inputted value with a level of confidence. Something like this:

from fuzzywuzzy import process

ports = {"Houston", "New York", "Newark", "Long Beach"}
user_input = "Strong Beach"
best_guess = process.extractOne(user_input, ports)
print(f"The best match for '{user_input}' is '{best_guess[0]}' which is a {best_guess[1]}% match.")



  The best match for 'Strong Beach' is 'Long Beach' which is a 82% match.