flashtext icon indicating copy to clipboard operation
flashtext copied to clipboard

added phone number regex example to docs

Open gracerosemary opened this issue 3 years ago • 1 comments

gracerosemary avatar Apr 29 '21 02:04 gracerosemary

@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

But this would require passing individual costs for additions/deletions

remiadon avatar May 08 '21 18:05 remiadon