From 32acf8c4940b5e7088b0651d5e7ea480afee9e7b Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Sun, 11 Jan 2026 13:35:30 -0500 Subject: Clean up apostrophes --- setup.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.go b/setup.go index d88db48..dbd9955 100644 --- a/setup.go +++ b/setup.go @@ -125,6 +125,10 @@ func populateDictionary(rawDictionary string, db *sql.DB) error { continue } + // Clean up the word. Replace apostrophes (common in phrases) with + // single quotes (more likely to be typed by a user). + result.Word = strings.ReplaceAll(result.Word, `’`, `'`) + // Create the definition text. entry := templateReadyDictionaryEntry{ Word: result.Word, -- cgit v1.2.3