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-anaphora.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/fixtures/wiktionary-anaphora.json (limited to 'tests/fixtures/wiktionary-anaphora.json') diff --git a/tests/fixtures/wiktionary-anaphora.json b/tests/fixtures/wiktionary-anaphora.json new file mode 100644 index 0000000..1c57068 --- /dev/null +++ b/tests/fixtures/wiktionary-anaphora.json @@ -0,0 +1 @@ +{"en":[{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":""},{"definition":" The repetition of a phrase at the beginning of phrases, sentences, or verses, used for emphasis."},{"definition":""},{"definition":" An expression that refers to a preceding expression."},{"definition":""},{"definition":" The most solemn part of the Divine Liturgy or the Mass during which the offerings of bread and wine are consecrated as body and blood of Christ."}]},{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":"plural of anaphor"}]}]} \ No newline at end of file -- cgit v1.2.3