You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2023/12/11 10:52:27 UTC

(lucene) branch branch_9x updated: Fix typo Levenstein -> Levenshtein (#12519)

This is an automated email from the ASF dual-hosted git repository.

mikemccand pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new cbefa25b7f4 Fix typo Levenstein -> Levenshtein (#12519)
cbefa25b7f4 is described below

commit cbefa25b7f42fa4421f3a67f0393b55f93822a74
Author: Usman Shaikh <38...@users.noreply.github.com>
AuthorDate: Mon Dec 11 10:49:36 2023 +0000

    Fix typo Levenstein -> Levenshtein (#12519)
    
    Please do not lose sight of the exquisite irony of mis-spelling this particular word ;)
---
 lucene/analysis/stempel/src/java/overview.html                          | 2 +-
 .../org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lucene/analysis/stempel/src/java/overview.html b/lucene/analysis/stempel/src/java/overview.html
index 6f3def6303e..942a86ceed5 100644
--- a/lucene/analysis/stempel/src/java/overview.html
+++ b/lucene/analysis/stempel/src/java/overview.html
@@ -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)
diff --git a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java
index d1a16fce8cc..14e6ba392d3 100644
--- a/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java
+++ b/lucene/suggest/src/test/org/apache/lucene/search/suggest/analyzing/TestFuzzySuggester.java
@@ -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;