Implement the Levenshtein correction algorithm #1

Merged
old-engineer merged 12 commits from correction into master 2026-10-29 16:58:44 +00:00
Collaborator
No description provided.
levi changed title from correction to Implement the Levenshtein correction algorithm 2026-10-29 15:58:18 +00:00
correction.rb Outdated
@ -0,0 +10,4 @@
.to_set
end
def search(word)
Owner

Search should just lookup in the dict... Calculating distance should be called something like correct? Search is used to detect typos, and then correct will be used to find the replacement

Search should just lookup in the dict... Calculating distance should be called something like `correct`? Search is used to detect typos, and then correct will be used to find the replacement
levi marked this conversation as resolved
correction.rb Outdated
@ -0,0 +63,4 @@
d[len1][len2]
end
end
Owner

This is no longer needed

This is no longer needed
levi force-pushed correction from 7677e22adb to 98ac871a7d 2026-10-29 16:57:43 +00:00 Compare
old-engineer deleted branch correction 2026-10-29 16:58:45 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
levi/typo-irc!1
No description provided.