Giter Site home page Giter Site logo

Comments (4)

Yomguithereal avatar Yomguithereal commented on June 16, 2024 1

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.

Yomguithereal avatar Yomguithereal commented on June 16, 2024

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.

anonimitoraf avatar anonimitoraf commented on June 16, 2024

Hi @Yomguithereal

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.

anonimitoraf avatar anonimitoraf commented on June 16, 2024

Thanks. I'll do that, then.

from clj-fuzzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.