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-SBIR.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/fixtures/wiktionary-SBIR.json (limited to 'tests/fixtures/wiktionary-SBIR.json') diff --git a/tests/fixtures/wiktionary-SBIR.json b/tests/fixtures/wiktionary-SBIR.json new file mode 100644 index 0000000..f7b0ae4 --- /dev/null +++ b/tests/fixtures/wiktionary-SBIR.json @@ -0,0 +1 @@ +{"en":[{"partOfSpeech":"Proper noun","language":"English","definitions":[{"definition":""},{"definition":" Initialism of Small Business Innovation Research (type of program).","parsedExamples":[{"example":"The funding mechanism will be SBIR."}],"examples":["The funding mechanism will be SBIR."]}]},{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":" Initialism of small business innovation research (project), a single project executed by any program of the eponymous type of program.","parsedExamples":[{"example":"They are working on an interesting SBIR."}],"examples":["They are working on an interesting SBIR."]}]}]} \ No newline at end of file -- cgit v1.2.3