Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allowing for alternatives #60

Open
mwoodsy opened this issue Dec 30, 2020 · 0 comments
Open

Feature Request: Allowing for alternatives #60

mwoodsy opened this issue Dec 30, 2020 · 0 comments

Comments

@mwoodsy
Copy link

mwoodsy commented Dec 30, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant