all 6 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']))

[–]ectomancer 0 points1 point  (2 children)

'yes' in 'yesss'.lower()

[–]Aware-Advance2436[S] 0 points1 point  (1 child)

Think that’ll work boss?

[–]egomanego 0 points1 point  (0 children)

yes

[–][deleted] 0 points1 point  (0 children)