wikionary API - meaning of words

后端 未结 4 615
北恋
北恋 2021-02-02 03:41

I would like get meaning of selected word using wikionary API. Content retrieve data should be the same as is presented in \"Word of the day\", only the basic meaning without e

4条回答
  •  旧巷少年郎
    2021-02-02 04:28

    As mentioned earlier, the content of the Wiktionary pages is in human-readable format, wikitext, so MediaWiki API doesn't allow to get word meaning because the data is not structured.

    However, each page follows specific convention, so it's not that hard to extract the meanings from the wikitext. Also, there're some APIs, like Wordnik or Lingua Robot that parse Wiktionary content and provide it in JSON format.

提交回复
热议问题