From e3dd073fb071fe27cfd955e4eca31ff7faf2a18e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 29 Jul 2024 13:33:24 -0400 Subject: Revert "typo: Raise the insert/delete cost" That was a little too aggressive, with -alse suggesting -size instead of -false. This reverts commit 0d6822ee71c1f60c8003e13ab149501e586f9ae6. --- src/typo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/typo.c') diff --git a/src/typo.c b/src/typo.c index cb826fc..b1c5c44 100644 --- a/src/typo.c +++ b/src/typo.c @@ -125,7 +125,7 @@ int typo_distance(const char *actual, const char *expected) { // This is the Wagner-Fischer algorithm for Levenshtein distance, using // Manhattan distance on the keyboard for individual characters. - const int insert_cost = (40 + 12 + 1) / 2; + const int insert_cost = 12; size_t rows = strlen(actual) + 1; size_t cols = strlen(expected) + 1; -- cgit v1.2.3