Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

levenshtein

number levenshtein(text1, text2)

Returns the Levenshtein distance between text1 and text2, used to check texts for similarity.

For a normalized distance use levenshtein(text1, text2) / max(#text1, #text2)

Parameters

  1. text1 — first text.
  2. text2 — second text.

Returns

  • the metric distance, 0 if texts are equal, at most the length of the longer text.
Note! This documentation is also accessible within the app from Help & feedback menu.