All Projects → tad-lispy → Node Damerau Levenshtein

tad-lispy / Node Damerau Levenshtein

Licence: bsd-2-clause
Damerau - Levenstein distance function for node

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Damerau Levenshtein

Pg similarity
set of functions and operators for executing similarity queries
Stars: ✭ 250 (+825.93%)
Mutual labels:  similarity, levenshtein
levenshtein.c
Levenshtein algorithm in C
Stars: ✭ 77 (+185.19%)
Mutual labels:  similarity, levenshtein
simetric
String similarity metrics for Elixir
Stars: ✭ 59 (+118.52%)
Mutual labels:  similarity, levenshtein
aurora
Malware similarity platform with modularity in mind.
Stars: ✭ 70 (+159.26%)
Mutual labels:  similarity
ruimtehol
R package to Embed All the Things! using StarSpace
Stars: ✭ 95 (+251.85%)
Mutual labels:  similarity
Closestmatch
Golang library for fuzzy matching within a set of strings 📃
Stars: ✭ 353 (+1207.41%)
Mutual labels:  levenshtein
Similarity
similarity:相似度计算工具包,java编写。用于词语、短语、句子、词法分析、情感分析、语义分析等相关的相似度计算。
Stars: ✭ 760 (+2714.81%)
Mutual labels:  similarity
hubot-suggest
Suggest hubot commands when not found
Stars: ✭ 29 (+7.41%)
Mutual labels:  levenshtein
Recordlinkage
A toolkit for record linkage and duplicate detection in Python
Stars: ✭ 532 (+1870.37%)
Mutual labels:  similarity
Js Levenshtein
The most efficient JS implementation calculating the Levenshtein distance, i.e. the difference between two strings.
Stars: ✭ 269 (+896.3%)
Mutual labels:  levenshtein
Go Edlib
Golang string comparison and edit distance algorithms library, featuring : Levenshtein, LCS, Hamming, Damerau levenshtein (OSA and Adjacent transpositions algorithms), Jaro-Winkler, Cosine, etc...
Stars: ✭ 253 (+837.04%)
Mutual labels:  levenshtein
semantic-document-relations
Implementation, trained models and result data for the paper "Pairwise Multi-Class Document Classification for Semantic Relations between Wikipedia Articles"
Stars: ✭ 21 (-22.22%)
Mutual labels:  similarity
Symspellpy
Python port of SymSpell
Stars: ✭ 420 (+1455.56%)
Mutual labels:  levenshtein
RepostCheckerBot
Bot for checking reposts on reddit
Stars: ✭ 36 (+33.33%)
Mutual labels:  levenshtein
Python String Similarity
A library implementing different string similarity and distance measures using Python.
Stars: ✭ 546 (+1922.22%)
Mutual labels:  similarity
mrivis
medical image visualization library and development toolkit
Stars: ✭ 19 (-29.63%)
Mutual labels:  similarity
Final word similarity
综合了同义词词林扩展版与知网(Hownet)的词语相似度计算方法,词汇覆盖更多、结果更准确。
Stars: ✭ 485 (+1696.3%)
Mutual labels:  similarity
similar-english-words
Give me a word and I’ll give you an array of words that differ by a single letter.
Stars: ✭ 25 (-7.41%)
Mutual labels:  levenshtein
goodreads-toolbox
9 tools for Goodreads.com, for finding people based on the books they’ve read, finding books popular among the people you follow, following new book reviews, etc
Stars: ✭ 56 (+107.41%)
Mutual labels:  similarity
Macropodus
自然语言处理工具Macropodus,基于Albert+BiLSTM+CRF深度学习网络架构,中文分词,词性标注,命名实体识别,新词发现,关键词,文本摘要,文本相似度,科学计算器,中文数字阿拉伯数字(罗马数字)转换,中文繁简转换,拼音转换。tookit(tool) of NLP,CWS(chinese word segnment),POS(Part-Of-Speech Tagging),NER(name entity recognition),Find(new words discovery),Keyword(keyword extraction),Summarize(text summarization),Sim(text similarity),Calculate(scientific calculator),Chi2num(chinese number to arabic number)
Stars: ✭ 309 (+1044.44%)
Mutual labels:  similarity

NPM

It provides a function that takes two string arguments and returns a hash like this:

{
  steps: 5,       // Levenstein demerau distance
  relative: 0.7,  // steps / length of the longer string
  similarity: 0.3 // 1 - relative
}

Install

npm install damerau-levenshtein

Use with ES6 modules

import * as levenshtien from 'damerau-levenshtein';

const lev = levenshtien('hello world', 'Hello World!');
// { steps: 4, relative: 0.3076923076923077, similarity: 0.6923076923076923 }

Please see tests for more insights.

Use with TypeScript

import * as levenshtien from 'damerau-levenshtein';

interface LevenshteinResponse {
  steps: number;
  relative: number;
  similarity: number;
}

const lev: LevenshteinResponse = levenshtien('hello world', 'Hello World!');

console.log(lev.steps);
// 2
console.log(lev.foo);
// TypeScript Error: Property 'foo' does not exist on type 'LevenshteinResponse'.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].