def METHOD_NAME(self, p1, p2):
    l1,l2 = len(p1),len(p2)
    ll,sl = max(l1,l2),min(l1,l2)
    if ll/sl > 3:
        return 0  #heuristic, eliminate if string length difference too large
    return StringMatcher.jaro_similarity(p1, p2)