Wiktionary · Schema

LanguageEntry

One language's worth of definitions for the term.

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
partOfSpeech string Grammatical part of speech for this entry.
language string Human-readable language name.
definitions array
View JSON Schema on GitHub

JSON Schema

rest-api-language-entry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-schema/rest-api-language-entry-schema.json",
  "title": "LanguageEntry",
  "description": "One language's worth of definitions for the term.",
  "type": "object",
  "properties": {
    "partOfSpeech": {
      "type": "string",
      "description": "Grammatical part of speech for this entry.",
      "example": "Interjection"
    },
    "language": {
      "type": "string",
      "description": "Human-readable language name.",
      "example": "English"
    },
    "definitions": {
      "type": "array",
      "items": {
        "title": "DefinitionEntry",
        "type": "object",
        "required": [
          "definition"
        ],
        "properties": {
          "definition": {
            "type": "string",
            "description": "HTML/wikitext definition body for one sense.",
            "example": "A standard greeting."
          },
          "examples": {
            "type": "array",
            "description": "Raw usage example strings.",
            "items": {
              "type": "string"
            },
            "example": [
              "Hello, world!"
            ]
          },
          "parsedExamples": {
            "type": "array",
            "description": "Structured usage examples (HTML or translation pairs).",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      }
    }
  },
  "required": [
    "partOfSpeech",
    "language",
    "definitions"
  ]
}