diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-28 18:07:00 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-28 18:07:00 -0500 |
| commit | 166d3bde50718eacd51c75cb82246988d9ec0151 (patch) | |
| tree | 5d7161848ba74465db50058fb54a1f944b99730a /tests/fixtures/wiktionary-anaphora.json | |
| parent | 1e2da6b1a463492ada31ce473414289e761519ca (diff) | |
| download | gloss-166d3bde50718eacd51c75cb82246988d9ec0151.tar.gz gloss-166d3bde50718eacd51c75cb82246988d9ec0151.zip | |
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.
Diffstat (limited to 'tests/fixtures/wiktionary-anaphora.json')
| -rw-r--r-- | tests/fixtures/wiktionary-anaphora.json | 1 |
1 files changed, 1 insertions, 0 deletions
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":"<span class=\"usage-label-sense\"></span> The <a rel=\"mw:WikiLink\" href=\"/wiki/repetition\" title=\"repetition\">repetition</a> of a <a rel=\"mw:WikiLink\" href=\"/wiki/phrase\" title=\"phrase\">phrase</a> at the beginning of phrases, <a rel=\"mw:WikiLink\" href=\"/wiki/sentence\" title=\"sentence\">sentences</a>, or <a rel=\"mw:WikiLink\" href=\"/wiki/verse\" title=\"verse\">verses</a>, used for <a rel=\"mw:WikiLink\" href=\"/wiki/emphasis\" title=\"emphasis\">emphasis</a>."},{"definition":""},{"definition":"<span class=\"usage-label-sense\"></span> An expression that refers to a preceding expression."},{"definition":""},{"definition":"<span class=\"usage-label-sense\"></span> The most solemn part of the <a rel=\"mw:WikiLink\" href=\"/wiki/Divine_Liturgy\" title=\"Divine Liturgy\">Divine Liturgy</a> or the <a rel=\"mw:WikiLink\" href=\"/wiki/Mass\" title=\"Mass\">Mass</a> during which the <a rel=\"mw:WikiLink\" href=\"/wiki/offering\" title=\"offering\">offerings</a> of bread and wine are <a rel=\"mw:WikiLink\" href=\"/wiki/consecrate\" title=\"consecrate\">consecrated</a> as body and blood of <a rel=\"mw:WikiLink\" href=\"/wiki/Christ\" title=\"Christ\">Christ</a>."}]},{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":"<span class=\"form-of-definition use-with-mention\" about=\"#mwt86\" typeof=\"mw:Transclusion\"><a rel=\"mw:WikiLink\" href=\"/wiki/Appendix:Glossary#plural_number\" title=\"Appendix:Glossary\">plural</a> of <span class=\"form-of-definition-link\"><i class=\"Latn mention\" lang=\"en\"><a rel=\"mw:WikiLink\" href=\"/wiki/anaphor#English\" title=\"anaphor\">anaphor</a></i></span></span><link rel=\"mw:PageProp/Category\" href=\"./Category:English_plurals_in_-a#ANAPHORA\" about=\"#mwt86\">"}]}]}
\ No newline at end of file |
