Git Product home page Git Product logo

fuzzball.js's People

Contributors

arthurtalkgoal avatar dependabot[bot] avatar fruch avatar garaboncias avatar kaplanncc avatar nol13 avatar soukand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fuzzball.js's Issues

More permissive licences?

Hi!
Is GPL used for this project deliberately?

We were banned from using this lib in our project by our legal team because apparently installing a package is not considered "Separate Works".
If you could reconsider a more permissive licence that would actually allow usage in a commercial project, that would be amazing!

.

.

Not working on Node 6.10

{ Error: socket hang up
    at TLSSocket.onHangUp (_tls_wrap.js:1124:19)
    at TLSSocket.d (/.../node_modules/fuzzball/lib/difflib.js:5:18962)
    at TLSSocket.f.emit (/.../node_modules/fuzzball/lib/difflib.js:5:18023)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9) code: 'ECONNRESET' }

Any idea on why this isn't loading properly? I have to use 6.10 for Lambda support...

Error: Invalid choices on mobile (iOS)

When using extract, I'm getting Error: Invalid choices on iOS both on chrome and safari.

It some times happens on chrome desktop too but it's always happening on mobile.

Any ideas as can't seem to find much anywhere about this.

Score values

Hello,
when I use extract, the returned score are not between 0 and 100 with 100 a perfect match. From what I see, it's between 0 and 1 with 0 being a perfect match.
Is it right?

fuzzball no working in full strict mode

$ node --use_strict test.js
/extra/ifruchte/fuzz/node_modules/fuzzball/lib/fbdifflib.js:6
floor = Math.floor, max = Math.max, min = Math.min;
^

ReferenceError: floor is not defined

How to import into typescript project

Hi there,

Apologies for this question. But how do I import this lib into typescript project. I've tried:

//app.ts
import * as fuzzball from "fuzzball";
fuzzball.partial_ratio(a, b, options);

ERR:
Uncaught ReferenceError: require is not defined
at fuzzball.js?v=62d528f1:4
at fuzzball.js?v=62d528f1:1039

Your assistance is appreciated :)
Rgds,
SS

FYI - using in BigQuery

As a FYI, I'm using fuzzball.js in BigQuery as shared persistent functions:

SELECT fhoffa.x.levenshtein('felipe', 'hoffa')
 , fhoffa.x.levenshtein('googgle', 'goggles')
 , fhoffa.x.levenshtein('is this the', 'Is This The')

6  2  0

Fuzzy choose one:

SELECT fhoffa.x.fuzzy_extract_one('jony' 
  , (SELECT ARRAY_AGG(name) 
   FROM `fh-bigquery.popular_names.gender_probabilities`) 
  #, ['john', 'johnny', 'jonathan', 'jonas']
)

johnny

Idea: AbortController support

It is pretty rare that someone has implemented cancellation in a javascript project.
This is awesome.
In javascript, there is a standard way how to implement cancellation now.
It is called abort controller https://developer.mozilla.org/en-US/docs/Web/API/AbortController
It was shipped with node 15 and is in the current LTS version. All modern browsers are supporting it as well.
What do you think about it?
I can help you with creating the PR.

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.