Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def similar_text(word1, word2) -> float:
"""
Determines if the two strings are similar enough given the passed threshold.
An alias for textdistance.overlap.similarity().
"""
return textdistance.overlap.similarity(word1, word2)
def similar_names(word1, word2) -> float:
'''
Determines if the two strings are similar enough given the passed threshold.
An alias for textdistance.overlap.similarity().
'''
return textdistance.overlap.similarity(word1, word2)