french-wiktionary-flashcards

Easily create Anki flashcards from Wiktionary data.
Log | Files | Refs | README

commit 32acf8c4940b5e7088b0651d5e7ea480afee9e7b
parent 6f5a49c07b20c77907a8d0578dedf1197979a16b
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date:   Sun, 11 Jan 2026 13:35:30 -0500

Clean up apostrophes

Diffstat:
Msetup.go | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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,