News

Many faces of Wikibase: Lingua Libre makes [ˈlæŋgwəʤəz] audible

MediaWiki, the free and open source software behind Wikipedia and its sister projects, is widely known and used outside the Wikimedia ecosystem, powering thousands of individual wikis around the world. Fewer people know that Wikibase—the software behind Wikidata, Wikimedia's knowledge base—is also available as free and open software, and can be used for external databases and linked open data projects. To highlight how organizations use Wikibase, the Wikimedia Foundation and Wikimedia Germany (Deutschland) are publishing a series of blog posts called the 'Many faces of Wikibase'.

Languages and multilinguality have always been an important part of the Wikimedia projects. After all, Wikimedia projects are available in over 300 languages. But most of these languages are accessible as a form of knowledge of their own only in their written form. Lingua Libre aims to change that by making the sound of a language and its pronunciation freely available in the form of structured data. Jens Ohlig interviewed Antoine Lamielle, main developer of Lingua Libre, about his project and how it uses Wikibase.

———

Jens: Could you introduce yourself? What brought you to the Wikimedia project?

Antoine: I’m User:0x010C, aka Antoine Lamielle, a Wikimedia volunteer since 2014.

I started editing a bit by accident, convinced by the philosophy of global free knowledge sharing. Over time, I’ve become a sysop and checkuser on the French Wikipedia, regular Commonist, working on a lot of on-wiki technical stuff (maintaining and developing bots, gadgets, templates, modules). Now, I’m also the architect and main developer of Lingua Libre since mid-2017.

Off wiki, I’m a French software engineer, fond of kayaking, photography and linguistics.

———

Jens: Tell us more about Lingua Libre! What is it? What’s its history? What is its status at the moment?

Antoine: Lingua Libre is a library of free audio pronunciation recordings that everyone can complete by giving a few words, some proverbs, a few sentences, and so on. These sounds will mainly enrich Wikimedia projects like Wikipedia or Wiktionary, but also help specialists in language studies in their research.

It is a pretty new project, taking its roots in the French wikiproject “Languages of France“, whose goal is to promote and preserve endangered regional languages on the Wikimedia sites. We found at that time that only 3% of all Wiktionary entries had an audio recording. That’s really bad given that it’s a very important element! It allows anyone who does not understand the IPA notation—a large part of the world population—to know how to pronounce a word. From there, the first version of Lingua Libre was born, an online tool to record word lists.

Nowadays, it has become a fully automated process that helps you record and upload pronunciations on Commons and reuse them on Wikidata and Wiktionary. We can do up to 1,200 word pronunciations per hour—this used to be more like 80 per hour with the manual process!

Recording Basque words for Lingua Libre at Wikimania in Montreal 2017. Photo by Xenophon75, CC BY-SA 4.0.

———

Jens: What brought you to Wikibase? Why is it a good fit for Lingua Libre?

Antoine: The first version of Lingua Libre collected metadata for each audio record, but it was stored in a traditional relational database, with no way to re-use it. We wanted to enhance that sleeping metadata by allowing anyone to explore it freely. But we also wished to gain flexibility in easily adding new metadata. Wikibase, equipped with a SPARQL endpoint, offered us all these possibilities, and all that in a well-known environment for Wikimedians! Paired with other benefits of MediaWiki—version history to name only one—the choice was clear.

The Lingua Libre interface. Screenshot, CC BY-SA 4.0.

In our Wikibase instance we store three different types of items: languages (including dialects) imported directly from Wikidata; speakers, containing linguistic information on each person performing a recording (what level he/she has in the languages he/she speaks, and where they learned them, accent etc.); and recordings. These are created transparently by the Lingua Libre recorder for each recording made, linking the file on Wikimedia Commons to metadata (language, transcription, date of the recording, to which Wikipedia article / entry of Wiktionary / Wikidata item it corresponds etc), but also to the item of its author.

Workflow for Lingua Libre. Image by Antoine Lamielle/0x010C, CC BY-SA 4.0.

———

Jens: Anything positive you realized about Wikibase as a software? Were there any hurdles you had to overcome? Is there anything that can be improved?

Antoine: Using the same software as Wikidata has made it easy for us to build bridges with this project, and take advantage of this incredible wealth of structured data. For example, to allow our speakers to describe where they learned a language, we use Wikidata IDs directly. This has many advantages in our use; so when we ask a new user where they have learned a language, they have total freedom on the level of precision they want to indicate (country, region, city, even neighborhood or school if they wish to), most often with labels translated into their own language.

Backstage we can thus mix and re-use the data of Wikidata and Lingua Libre via federated SPARQL queries (for example to search all the records made in a country, or to be able to listen to variations of pronunciation of the same word in several different regions) and all that without having to manage the cost, the limitations and the heavy maintenance of a geo name database!

However, this is currently more of a set of hacks than a perfect solution. Wikidata items are currently stored as external identifiers in our Wikibase instance, and the entire UI / UX depends on client-side AJAX calls to the Wikidata API. The ideal would be to be able to federate several Wikibases, allowing them to share items natively between them.

———

Jens: Is there something else you’d like to add?

Antoine: Thanks for the amazing job you’ve done so far on Wikibase, hoping it will continue so for a long time!

———

Interview by Jens Ohlig, Software Communications Strategist, Software Development
Wikimedia Germany (Deutschland)

Related

Read further in the pursuit of knowledge

Content translation tool helps create over half a million Wikipedia articles

In science fiction, the Encyclopedia Galactica is a compendium of a galaxy’s worth of knowledge. Wikipedia isn’t quite there yet—for one, we’ve barely left Earth. However, that doesn’t mean we aren’t trying to put together a planet’s worth of knowledge and ensure that all of its inhabitants can learn from it in their own languages.….

Read more

You can now use Google Translate to translate articles on Wikipedia

Studies estimate that there are more than 7,000 languages spoken around the world. Wikipedia exists in about 300 of them. That’s about 4 percent of some of the world’s languages documenting some of the world’s knowledge. Consider the Arabic language. With more than 420 million speakers, it’s one of the most widely spoken languages in….

Read more

Help us unlock the world’s knowledge.

As a nonprofit, Wikipedia and our related free knowledge projects are powered primarily through donations.

Donate now

Contact us

Questions about the Wikimedia Foundation or our projects? Get in touch with our team.
Contact

Photo credits