Open gracerosemary opened 3 years ago
@gracerosemary I think your example can be done via fuzzy matching If I take your example
phone_dictionary = { '(123)456-7890': ['123-456-7890', '123-4567890', '123456-7890', '(123)4567890'], }
calling add_keyword("'(123)456-7890") and setting very low costs for "(", ")", and "-" would do the trick I think
add_keyword("'(123)456-7890")
But this would require passing individual costs for additions/deletions
@gracerosemary I think your example can be done via fuzzy matching If I take your example
calling
add_keyword("'(123)456-7890")
and setting very low costs for "(", ")", and "-" would do the trick I thinkBut this would require passing individual costs for additions/deletions