How to parse Wiktionary templates and modules

298 Views Asked by At

I am having hard time to parse modules and templates

Actually i could not find how to get that data with API

Here i will give simple example

https://en.wiktionary.org/wiki/%C3%A7al%C4%B1%C5%9Fmak

It uses many modules and templates and parsed results of them are not included in the dump file

So how can i get parsed results

For example to obtain Conjugations of this verb çalışmak, this is written in the source code

====Conjugation====
{{tr-conj|çalış|ı|çalışır|ı|t}}

So how I can get parsed results of that part from API?,

For example wiktionary explains how to use templates at the below page

https://en.wiktionary.org/wiki/Wiktionary:Templates

From there i have opened https://en.wiktionary.org/wiki/Template:en-noun

From there it gives as an example {{en-noun|es}}

So when we open march page

https://en.wiktionary.org/wiki/march#Verb

We see that the plural form is written as {{en-verb|es}}

And it is parsed as march (third-person singular simple present marches, present participle marching, simple past and past participle marched)

So i need to get that parsed part somehow

So what I want to achieve is simple

I give the word or the page id, the template and i get the parsed results

For example i give the word march give the template {{en-verb|es}} and I get the parsed result which is march (third-person singular simple present marches, present participle marching, simple past and past participle marched)

It would be even better if the output were more structured but this is also fine

0

There are 0 best solutions below