Featured image of post Introducing Ġabra: A Native Maltese Dictionary for macOS

Introducing Ġabra: A Native Maltese Dictionary for macOS

A high-performance open-source Maltese dictionary for macOS with 4.5 million word forms.

Maltese is a unique and beautiful language, but native digital tools for it can sometimes be scarce. Today, I’m excited to share a project I’ve been working on: Ġabra Maltese Dictionary for macOS.

Why this project?

The Ġabra project from the University of Malta provides an incredible open lexicon of the Maltese language. However, using this data typically requires interacting with an API or a database. I wanted to bring this wealth of information directly into the macOS ecosystem, allowing users to look up words instantly using the built-in Dictionary app or the system-wide “Look up” feature (three-finger tap).

Screenshot of Ġabra Dictionary

Technical Challenges

The primary challenge was the sheer volume of data. While there are about 21,000 base lexemes, the lexicon includes nearly 4.5 million inflected word forms. Converting this from BSON (the format provided by the Ġabra team) to the Apple Dictionary XML format required a high-performance streaming approach.

I wrote a Python engine that processes these millions of entries without loading the entire 1.3GB dataset into memory. This ensures that the dictionary is not only comprehensive but also accurately indexes every plural, conjugation, and variant.

Features

  • 21,083 entries: Full coverage of the Ġabra lexicon.
  • 4.5 Million forms: Search for “skrejjen” (plural) and find “skrun” (propeller) instantly.
  • Rich Metadata: Includes phonetic transcriptions, grammatical categories (POS), and root information.
  • Native Experience: Works perfectly with Dark Mode, Spotlight, and “Look up”.

Open Source

I’ve decided to open-source the entire build pipeline. You can find the repository on GitHub:

👉 Jingyuan-Zheng/gabra-maltese-macos-dictionary

The repository includes an update.sh script that automates the process of downloading the latest data and rebuilding the dictionary, ensuring it stays up-to-date with the official Ġabra database.

Installation

If you just want to use the dictionary, you can download the DMG from the Releases page. Simply drag it to your Dictionaries folder and enable it in the Dictionary app settings!


I hope this tool helps learners and native speakers alike in exploring the richness of the Maltese language. Sahha!

Welcome to my site!
Built with Hugo
Theme Stack designed by Jimmy