Socket
Socket
Sign inDemoInstall

fuzzzzz

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fuzzzzz

Fuzzy string matching / scoring algorithm


Version published
Maintainers
1
Install size
11.6 kB
Created

Readme

Source

Fuzzy String Matching

fuzzyMatch calculates a score for an item (a string or an object with string-valued properties) against a string search term. The term does not necessarily have to be a substring of the item, but instead the score is calculated against dominant parts of the search object. For example, the string FuzzyStringMatching would score highly against the term FSM. If you've ever used the Go To Anything feature in Sublime Text, you'll know what I mean.

The idea is that you use this function to give a rank to each item in a searchable array, which can then be used to find the most relevant item in the array quickly.

The algorithm is somewhat arbitrary based on the use-case against which it was originally written, but essentially it is tailored towards matching initial characters in camelCased strings highly, as well as consecutive substrings.

FAQs

Last updated on 13 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc