Skip to content

Commit

Permalink
space bar
Browse files Browse the repository at this point in the history
  • Loading branch information
SquareScreamYT committed Oct 4, 2024
1 parent 40d13c2 commit 98af07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotobalibre/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function calculateRelevanceScore(word, definition, searchTerm) {
// Check if the normalized definition contains the normalized search term
if (normalizeDigraphs(definitionLower).includes(normalizedSearchTerm)) {
score += 3;
}
}

// Calculate the Levenshtein distance for the normalized word
const wordDistance = levenshteinDistance(normalizedWord, normalizedSearchTerm);
Expand Down

0 comments on commit 98af07f

Please sign in to comment.