Skip to content

Instantly share code, notes, and snippets.

@camelcaseblog
Created February 27, 2019 06:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save camelcaseblog/3a88d79384255d6c57d30b17c6c932f5 to your computer and use it in GitHub Desktop.
const { compareTwoStrings: sørensenDice } = require("string-similarity")
console.log(1 - sørensenDice("חצילים", "החציל"))
// 0.33333333333333337
console.log(1 - sørensenDice("פלפל ירוק ובצל", "פלפל ובצל ירוק"))
// 0.09090909090909094
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment