-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add CLOSE_MATCH threshold #21
Comments
Note: This could be a threshold, but also it could be used as a way to score how well things match. So maybe |
Would it be good to have a percent match and sort by that? So if the input is |
Hi @osfan501, thanks for your interest! Interesting. This turns out to be a tough problem with there being two Also, we'd have to consider input like This will be pretty complex.... :) |
So if I'm picturing this correctly for matching with |
Awesome! Make sure to follow the contributing guidelines (including the bit about adding yourself as a contributor). Also, I created a skip test for this here. Just remove that line and run Thanks! |
When I try to precommit getting this issue :
nps executing: p-s -p lint,build,test && p-s test.build RUNS src/index.test.js ----------|----------|----------|----------|----------|----------------|
npm ERR! Darwin 16.5.0 npm ERR! Please include the following file with any support request: npm ERR! Darwin 16.5.0 npm ERR! Please include the following file with any support request: |
Ah, this project requires Node v6 for development. You're using an older version and will need to upgrade. I'd that possible? I recommend https://git.io/nvm |
....whoops |
And now we can close this issue! |
Thanks! |
In my app, if the user types "India" they will see "Indonesia" because our threshold is set to MATCH. But this is confusing. I'd like to add a CLOSE_MATCH threshold which will function similar to MATCH but only count if there are only two characters between the previous letter and the next (so "Inda" would match "India" but not "Indonesia").
This threshold would probably go best between MATCHES and ACRONYM.
The text was updated successfully, but these errors were encountered: