From 166d3bde50718eacd51c75cb82246988d9ec0151 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 28 Apr 2026 18:07:00 -0500 Subject: chore: capture Wiktionary REST fixtures for replay Save raw response bodies from the Wiktionary REST endpoint under tests/fixtures/. The fetch layer can replay them with a cl-letf on url-retrieve-synchronously instead of hitting the network in tests. The five fixtures cover the cases that matter for the parser. anaphora is the simple single-sense English entry. SBIR is an acronym with multiple senses. API is highly polysemous and multi-language (en, fr, id, la, pt). hapax-legomenon is the multi-word case, so it exercises URL-encoding for the space. The 404 fixture captures the JSON error body Wiktionary returns when a term isn't there. --- tests/fixtures/wiktionary-API.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/fixtures/wiktionary-API.json (limited to 'tests/fixtures/wiktionary-API.json') diff --git a/tests/fixtures/wiktionary-API.json b/tests/fixtures/wiktionary-API.json new file mode 100644 index 0000000..7e71e45 --- /dev/null +++ b/tests/fixtures/wiktionary-API.json @@ -0,0 +1 @@ +{"en":[{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":""},{"definition":" Initialism of active pharmaceutical ingredient."},{"definition":""},{"definition":" Initialism of application programming interface."},{"definition":"Initialism of Asian and Pacific Islander."},{"definition":" Initialism of advanced primer ignition."},{"definition":" Initialism of armor-piercing incendiary."}]},{"partOfSpeech":"Proper noun","language":"English","definitions":[{"definition":"Initialism of American Petroleum Institute."},{"definition":" Initialism of Additional Protocol I of 1977 to the four Geneva Conventions."}]}],"fr":[{"partOfSpeech":"Proper noun","language":"French","definitions":[{"definition":"initialism of alphabet phonétique international: IPA (International Phonetic Alphabet)"}]},{"partOfSpeech":"Noun","language":"French","definitions":[{"definition":"API, application programming interface"}]},{"partOfSpeech":"Noun","language":"French","definitions":[{"definition":"initialism of automate programmable industriel (programmable logic controller), PLC"}]}],"id":[{"partOfSpeech":"Proper noun","language":"Indonesian","definitions":[{"definition":"initialism of Akademi Penerbang Indonesia"}]},{"partOfSpeech":"Noun","language":"Indonesian","definitions":[{"definition":"initialism of alat penangkapan ikan"},{"definition":" Initialism of application programming interface."},{"definition":" initialism of Anugerah Pesona Indonesia"},{"definition":" initialism of angka pengenal importir"}]}],"la":[{"partOfSpeech":"Proper noun","language":"Latin","definitions":[{"definition":"initialism of Alphabētum Phōnēticum Internātiōnāle (International Phonetic Alphabet (IPA))"}]}],"pt":[{"partOfSpeech":"Noun","language":"Portuguese","definitions":[{"definition":" API (application programming interface)"}]}]} \ No newline at end of file -- cgit v1.2.3