Skip to content

Determine if two strings are similar using the Levenshtein distance (and setting a percentage of similarity, of course!).

License

Notifications You must be signed in to change notification settings

valndev/LevenshteinSimilarity

Repository files navigation

LevenshteinSimilarity

Determine if two strings are similar using the Levenshtein distance.

Installation

# Install dependencies ⌨️
$ npm install

Startup

# Deploy the server 🖥️
$ node .

Expected JSON query (GET: https://localhost:3000/{percentage})

Where {percentage} is a number between 0 and 100.

{
	"str1": "String #1",
	"str2": "String #2"
}

Example of a response

{
	"error": null,
	"similarityPercentage": 70,
	"response": true
}

Percentages are truncated.

About

Determine if two strings are similar using the Levenshtein distance (and setting a percentage of similarity, of course!).

Resources

License

Stars

Watchers

Forks