Overview of Wiktextract
masterWiktextract is a Python package and command-line tool designed to extract structured information from Wiktionary data dumps. Unlike many other extractors, it expands Wiktionary templates and Lua macros, which allows for much higher accuracy in extracting glosses, word senses, inflected forms, pronunciations, and semantic annotations (like colors, numbers, or SI units).
Key features include:
- High Fidelity: Expands Lua modules for superior extraction quality.
- Comprehensive Data: Extracts parts-of-speech, declension/conjugation, translations, pronunciations (with audio links), qualifiers, and links to Wikipedia/Wikidata.
- Output Format: Produces JSON Lines (
.jsonl) files, where each line is a separate JSON object representing a word entry. - Versatility: Useful for NLP, machine translation, and morphological research.