apoc.text.levenshteinSimilarity
Function APOC Core
apoc.text.levenshteinSimilarity(text1, text2) - calculate the similarity (a value within 0 and 1) between two texts.
Usage Examples
RETURN apoc.text.levenshteinSimilarity("Neo4j", "Neo4j") AS output;
output |
---|
1.0 |
RETURN apoc.text.levenshteinSimilarity("Neo4j", "Neoj4") AS output;
output |
---|
0.6 |
RETURN apoc.text.levenshteinSimilarity("Neo4j Aura", "Neo4j Graph Database") AS output;
output |
---|
0.35 |