aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures/wiktionary-hapax-legomenon.json
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-28 18:07:00 -0500
committerCraig Jennings <c@cjennings.net>2026-04-28 18:07:00 -0500
commit166d3bde50718eacd51c75cb82246988d9ec0151 (patch)
tree5d7161848ba74465db50058fb54a1f944b99730a /tests/fixtures/wiktionary-hapax-legomenon.json
parent1e2da6b1a463492ada31ce473414289e761519ca (diff)
downloadgloss-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-hapax-legomenon.json')
-rw-r--r--tests/fixtures/wiktionary-hapax-legomenon.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fixtures/wiktionary-hapax-legomenon.json b/tests/fixtures/wiktionary-hapax-legomenon.json
new file mode 100644
index 0000000..3cb0a02
--- /dev/null
+++ b/tests/fixtures/wiktionary-hapax-legomenon.json
@@ -0,0 +1 @@
+{"en":[{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":"<span class=\"usage-label-sense\" about=\"#mwt16\" typeof=\"mw:Transclusion\"></span> A <a rel=\"mw:WikiLink\" href=\"/wiki/word\" title=\"word\">word</a> <a rel=\"mw:WikiLink\" href=\"/wiki/occur\" title=\"occur\">occurring</a> <a rel=\"mw:WikiLink\" href=\"/wiki/only\" title=\"only\">only</a> <a rel=\"mw:WikiLink\" href=\"/wiki/once\" title=\"once\">once</a> in a given <a rel=\"mw:WikiLink\" href=\"/wiki/corpus\" title=\"corpus\">corpus</a>."}]}],"de":[{"partOfSpeech":"Noun","language":"German","definitions":[{"definition":"<span class=\"form-of-definition use-with-mention\" about=\"#mwt69\" typeof=\"mw:Transclusion\">alternative <a rel=\"mw:WikiLink\" href=\"/wiki/Appendix:Glossary#letter_case\" title=\"Appendix:Glossary\">letter-case</a> form of <span class=\"form-of-definition-link\"><i class=\"Latn mention\" lang=\"de\"><a rel=\"mw:WikiLink\" href=\"/wiki/Hapax_Legomenon#German\" title=\"Hapax Legomenon\">Hapax Legomenon</a></i></span></span>"}]}],"hu":[{"partOfSpeech":"Noun","language":"Hungarian","definitions":[{"definition":"<span class=\"Latn\" lang=\"en\" about=\"#mwt77\" typeof=\"mw:Transclusion\"><a rel=\"mw:WikiLink\" href=\"/wiki/hapax_legomenon#English\" class=\"mw-selflink-fragment\">hapax legomenon</a></span>"}]}],"es":[{"partOfSpeech":"Noun","language":"Spanish","definitions":[{"definition":"<span class=\"form-of-definition use-with-mention\" about=\"#mwt85\" typeof=\"mw:Transclusion\">alternative form of <span class=\"form-of-definition-link\"><i class=\"Latn mention\" lang=\"es\"><a rel=\"mw:WikiLink\" href=\"/wiki/hápax_legómenon#Spanish\" title=\"hápax legómenon\">hápax legómenon</a></i></span></span>"}]}]} \ No newline at end of file