Comments (4)
I think it makes sense to have it in a separate lib. What's more you will have better control of it and won't need me to validate your choices and publish the lib when you need to I think.
from clj-fuzzy.
Hello @anonimitoraf. It looks a lot like a heuristic-based mix of multiple typical methods such as absolute bigram Dice coeff + first letters boosts etc. I guess the real question is: is this method particularly known and used, as is, by many people? So my first answer would be no because it's not very definite and a lot of alternative to this particular approach exist in the wild (such as sublime text's fuzzy matching heuristics) and tailored to this kind of use cases (mostly dev tool focused), while this lib is more about elementary building blocks. This said, a second way to answer the question would be: would it be useful to you that this is included to the library? In which case I would say why not?
from clj-fuzzy.
I see. Yes, it seems like this algorithm is used by Emacs' ido (and maybe the others like ivy) for autocompletion (https://github.com/lewang/flx).
Based on that^ repo, Sublime Text uses a similar (if, not, the same) approach.
while this lib is more about elementary building blocks
Understood
would it be useful to you that this is included to the library? In which case I would say why not?
Actually, the bigger context to my initial question is: clojure-lsp
uses this library for filtering particular search results (e.g. symbols within a project). It currently uses Dice coeff.
I personally find the results quite unintuitive so I suggested (to the clojure-lsp maintainer) to use https://github.com/lewang/flx instead.
TLDR: I can just make a separate lib and make a PR to clojure-lsp to use that lib, if it makes more sense to do so.
from clj-fuzzy.
Thanks. I'll do that, then.
from clj-fuzzy.
Related Issues (20)
- dice algorithm NaN HOT 7
- Fix Levenshtein ortographe
- Switch to gulp
- Fix the cljx pb
- Lovins stemmer
- Rework headers and descriptions
- Repo needs `index.js` so that it can be invoked with `require` HOT 3
- Switch to cljx or feature expressions
- Levenstein distance performance HOT 6
- issue using this project as a dependency in clojurescript HOT 17
- Cologne phonetic will drop the first place 0 erroneously
- Something seems to be amiss with Jaro distance & long strings
- Levenshtein Distance Error On Empty Sequence HOT 1
- Clojurescript should be a dev dependency HOT 5
- Spanish support? HOT 13
- Documentation website outdated HOT 6
- Jaro-Winkler returns unexpected values for two nil inputs HOT 4
- Big-O Performance HOT 2
- interferes with other modules, do NOT use this module unless it's fixed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clj-fuzzy.