syntax:functions:distance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
syntax:functions:distance [2018/03/01 09:24] – dmitry | syntax:functions:distance [2021/08/14 22:02] (current) – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== distance(text, text) ===== | + | ====== Distance(text1, text2) ====== |
+ | Category: | ||
- | The edit distance between two text strings calculated as the [[https:// | + | \\ |
+ | =====Description===== | ||
+ | This function returns the edit distance between two text strings calculated as the [[https:// | ||
- | ^ | + | This shows the number of text edits, such as character insertions or deletions, that is needed to produce //text2// from //text1//. It is used to measure the degree of variance between two strings. The larger the edit distance, the more different the strings are. |
- | | distance(" | + | |
- | | distance(" | + | \\ |
- | | distance(" | + | =====Use cases==== |
- | | distance(" | + | Rating the similarity between words (fuzzy matching). |
+ | |||
+ | The detection of mistyped words. | ||
+ | |||
+ | \\ | ||
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |text1|Text|The " | ||
+ | |text2|Text|The " | ||
+ | |||
+ | **Return value type:** Number | ||
+ | |||
+ | \\ | ||
+ | =====Remarks===== | ||
+ | This function is case sensitive insofar as replacing a lower-case character with the upper-case version, or upper-case with the lower-case version, is considered an edit. | ||
+ | |||
+ | While numeric values can be entered for either argument, the function handles them as text strings for the calculation of the edit distance. | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | distance(" | ||
+ | |||
+ | distance(100, | ||
+ | |||
+ | distance(100, | ||
- | Use cases: fuzzy matching, detection of mistyped words. |
syntax/functions/distance.1519914269.txt.gz · Last modified: 2018/03/01 09:24 by dmitry