Fix typo Levenstein -> Levenshtein (#12519)

Please do not lose sight of the exquisite irony of mis-spelling this particular word ;)
This commit is contained in:
Usman Shaikh 2023-12-11 10:49:36 +00:00 committed by GitHub
parent a9b5ef4749
commit 6a56b2ea7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ stored as a key and the record of key's transformation to its
respective stem. The transformation record is termed a patch command
(P-command). It must be ensured that P-commands are universal, and that
P-commands can transform any word to its stem. Our solution[6,8] is
based on the Levenstein metric [10], which produces P-command as the
based on the Levenshtein metric [10], which produces P-command as the
minimum cost path in a directed graph.<br>
<br>
One can imagine the P-command as an algorithm for an operator (editor)

View File

@ -1200,7 +1200,7 @@ public class TestFuzzySuggester extends LuceneTestCase {
// and tweaked to return the edit distance not the float
// lucene measure
/* Finds unicode (code point) Levenstein (edit) distance
/* Finds unicode (code point) Levenshtein (edit) distance
* between two strings, including transpositions. */
public int getDistance(String target, String other, boolean allowTransposition) {
IntsRef targetPoints;