0

I would like to get:

  1. a list of nouns in a specific language
  2. the case declension table for a word in a slavic language.

I was hoping to be able to send something like an http get request with parameters:

https://cs.wiktionary.org/wiki/wordlist/nouns

And for the declension table I was also hoping for an http request and then a response as a JSON object, eg.:

https://cs.wiktionary.org/wiki/program/declension

Expected response:

{
"word":"program",
"singular_declension":
    [
        "nominative":"program",
        "genitive":"programu",
        "dative":"programu",
        "accusative":"program",
        "vocative":"programe",
        "locative":"programu",
        "instrumental":"programem",
    ]
"plural_declension":
    [
        "nominative":"programy",
        "genitive":"programů",
        "dative":"programům",
        "accusative":"programy",
        "vocative":"programy",
        "locative":"programech",
        "instrumental":"programy",
    ]
}

Unfortunately, I cannot find any endpoints for that in the official API specs: https://www.mediawiki.org/wiki/API:Main_page ...nor the documentation: https://www.mediawiki.org/wiki/API:Main_page

How can I get those results? Or do I have to resort to webscraping and extracting this info from the html pages?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Val
  • 1,548
  • 1
  • 20
  • 36

0 Answers0