Wikidata:Wikidata Lexeme Forms

From Wikidata
Jump to navigation Jump to search

Wikidata Lexeme Forms is a tool to create a lexeme with a set of forms, e. g. the declensions of a noun or the conjugations of a verb.

Usage[edit]

You select a template on the index page (e. g. “English noun”), fill in the forms based on the example sentences (the first form will become the lemma), and then submit the page to create the lexeme (to which you will be redirected). If a lexeme with the same lemma already exists, you will be warned of the duplicate and can decide whether you want to go ahead or not.

Multiple variants[edit]

In some languages, there can be multiple forms with the same grammatical features. For example, some German words have two genitive or dative singular forms („des Hunds/Hundes“, „dem Kind/Kinde“). To create several forms for them, you can specify the different variants, separated by slashes.

This should not be confused with multiple spelling variants of the same form, e. g. “color/colour” in English. Those should be added as additional representations of the same form, with different language codes indicating where the spelling is used, as seen on color/colour (L1347).

Language support[edit]

To start adding support for a new language, enter the language name in English here, follow the instructions, and then {{Ping}} Lucas Werkmeister on the talk page:


To add a new template for an already supported language, go to the subpage for that language and start with the inputbox there. The following languages are currently supported:

Additionally, the following languages have translations but no templates yet, or their templates still need some more work before they can be added:

Patrolling[edit]

You can see edits made using this tool on the recent changes list.

API[edit]

The tool also has some API endpoints which may also be used by others (just don’t flood too much, please).

Duplicates[edit]

To search for duplicates of a potential new lexeme by its lemma (or, equivalently, to search for existing lexemes by lemma), send a GET request to https://tools.wmflabs.org/lexeme-forms/api/v1/duplicates/www/language-code/lemma, where language-code is a language code like en or de-at and lemma is the lemma you’re looking for (which may contain slashes, if necessary). To search test.wikidata.org, replace the www with test.

The response is either a JSON array with objects for the search results, where each object has id, label, description and uri members, or HTTP 204 No Content if there are no results.

You must specify a header Accept: application/json when sending requests to this API, otherwise the results may be returned in an HTML format that’s specific to this tool and not useful outside of it. (Note that the curl command-line tool sends Accept: */* by default, which means you get HTML back if you don’t explicitly specify a different Accept header.)