aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures/wiktionary-SBIR.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-SBIR.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-SBIR.json')
-rw-r--r--tests/fixtures/wiktionary-SBIR.json1
1 files changed, 1 insertions, 0 deletions
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":"<span class=\"usage-label-sense\"></span> <span class=\"form-of-definition use-with-mention\"><a rel=\"mw:WikiLink\" href=\"/wiki/Appendix:Glossary#initialism\" title=\"Appendix:Glossary\">Initialism</a> of <span class=\"form-of-definition-link\"><i class=\"Latn mention\" lang=\"en\"><a rel=\"mw:WikiLink/Interwiki\" href=\"https://en.wikipedia.org/wiki/Small%20Business%20Innovation%20Research\" title=\"w:Small Business Innovation Research\" class=\"extiw\">Small Business Innovation Research</a></i> <span class=\"mention-gloss-paren annotation-paren\">(</span><span class=\"mention-gloss-double-quote\">“</span><span class=\"mention-gloss\">type of program</span><span class=\"mention-gloss-double-quote\">”</span><span class=\"mention-gloss-paren annotation-paren\">)</span></span></span><link rel=\"mw:PageProp/Category\" href=\"./Category:English_initialisms#SBIR\">.","parsedExamples":[{"example":"The funding mechanism will be <b>SBIR</b>."}],"examples":["The funding mechanism will be <b>SBIR</b>."]}]},{"partOfSpeech":"Noun","language":"English","definitions":[{"definition":"<span class=\"usage-label-sense\" about=\"#mwt7\" typeof=\"mw:Transclusion\"></span> <span class=\"form-of-definition use-with-mention\" about=\"#mwt8\" typeof=\"mw:Transclusion\"><a rel=\"mw:WikiLink\" href=\"/wiki/Appendix:Glossary#initialism\" title=\"Appendix:Glossary\">Initialism</a> of <span class=\"form-of-definition-link\"><i class=\"Latn mention\" lang=\"en\"><a rel=\"mw:WikiLink\" href=\"/wiki/small_business#English\" title=\"small business\">small business</a> <a rel=\"mw:WikiLink\" href=\"/wiki/innovation#English\" title=\"innovation\">innovation</a> <a rel=\"mw:WikiLink\" href=\"/wiki/research#English\" title=\"research\">research</a></i> <span class=\"mention-gloss-paren annotation-paren\">(</span><span class=\"mention-gloss-double-quote\">“</span><span class=\"mention-gloss\">project</span><span class=\"mention-gloss-double-quote\">”</span><span class=\"mention-gloss-paren annotation-paren\">)</span></span></span><link rel=\"mw:PageProp/Category\" href=\"./Category:English_initialisms#SBIR\" about=\"#mwt8\">, a single project executed by any program of <a rel=\"mw:WikiLink\" href=\"/wiki/SBIR#Proper_noun\" class=\"mw-selflink-fragment\">the eponymous type of program</a>.","parsedExamples":[{"example":"They are working on an interesting <b>SBIR</b>."}],"examples":["They are working on an interesting <b>SBIR</b>."]}]}]} \ No newline at end of file