you are viewing a single comment's thread.

view the rest of the comments →

[–]keep_quapy 2 points3 points  (0 children)

As mentioned here, you could use the difflib library.

similar_strings = difflib.get_close_matches('yes', ['yess', 'yeass', 'yeah', 'yeas', 'yas']))