Feature Request: Allowing for alternatives
Opened this issue · 0 comments
mwoodsy commented
When comparing strings it would be nice to allow for equivalent or alternative words. For example:
Hi, This is Ann.
Hi, This is Anne.
The cost is 21 dollars
The cost is $21.00 dollars
The cost is $21
The cost is twenty one dollars
I'm going to go for a walk
I'm gonna go for a walk
could all be equivalent
A method to implement something like this could be to allow for something like this syntax [], for example:
a = "Hi this is Ann I'm going to go for a walk"
b = "Hi this is [Anne|Ann|An] [I'm|I am] [going to|gonna] go for a walk"
distance(a,b) #returns 0