Select Language(s): Facebook takes language settings to the next level

Facebook is updating its user profile page (profiled in-depth here) and one of the changes is to ask users to self-select one or more languages.

Facebook already looks at the user’s web browser for an indication of what language he/she prefers, but this is far from a perfect solution. Having the user self-select languages allows Facebook to do some fairly nifty things when it comes to aligning users (suggested friends, interests, etc.) — and, of course, improving ad targeting. It remains to be seen what Facebook does with these multilingual user profiles.

My friends must wonder how I’ve sudden become so multilingual as I’ve been playing with this feature. Here’s my current list of languages (Spanglish included):

And here’s how these languages are presented on my profile:

Notice the globe icon!

Thankfully, Facebook is correctly using a globe icon to indicate languages. Now perhaps Facebook will kill the globe icon for notifications (something I’ve been critical of before). Facebook now uses the globe icon for three different features on its portal — something’s gotta give.

That said, I like that Facebook is making languages a high-level profile feature.

Multilingual web users are an important segment of the Internet. In my experiences, I have found that these users tend to be very key proselytizers of social networking services — and I’m sure Facebook is well aware of this as well.

Properly supporting multilingual users is an important step forward and one that I believe other companies will attempt to duplicate in the years ahead.

Inside Google’s language detection tool

One of the highlights of attending the 2010 Unicode Conference was listening to Richard Sites explain how he developed Google’s statistical language detection algorithm.

You may have already used this algorithm as part of Google Translate:

The feature is also embedded into Google’s Chrome browser. If Chrome detects a web page in a language other than your browser’s default language, it will ask you (as shown below) if you’d like the past translated (assuming Google supports the translation).

The tool works by scanning a chunk of text and then segmenting and analyzing four-character “tokens.” These tokens are compared against a very large table of reference tokens that have language properties associated with them. If you’ve played with this feature on Google Translate, you’ll notice that the accuracy of the algorithm improves as you add text.

Richard set out to create a tool that would identify 180 languages across 57 scripts. The hard part was in creating this reference table of tokens. It required analyzing millions of words of source text of each language, which isn’t so easy when you consider that some of these languages just aren’t represented that well on the Internet. Even Wikipedia came up short for many languages (it supports more than 170 languages, but not all of these languages have much in the way of content).

Now you may think that the detection tool could also look at the HTML lang tag or the character encoding of the web page to come up with its answer. But as Richard noted, roughly 5% of all web pages specify an incorrect text encoding. Even Wikipedia incorrectly labels languages on occasion. To further complicate matters, between 5% and 10% of all web pages include more than one language.

If you’re into learning more, you can take a look at the code itself — the Chrome branch is open sourced here.

A few  notes from Richard’s talk:

  • Other sources of language data used to fine-tune the algorithm included the BBC and Watchtower.org — the web site of the Jehovah’s Witnesses.
  • This algorithm was developed as a 20% project. Which makes me wonder what the heck Richard is doing with the other 80% of his time.
  • The reason Chrome only covers 52 languages is that the application needs to be compact — for fast downloading. Each additional language requires additional reference tables.
  • There are some language pairs that still pose challenges to the algorithm (because the languages themselves are so closely related). Challenging pairs include, among others, Indonesian and Malay, Czech and Slovak, and Bosnian and Croatian.
  • In 2008, English made up 42% of all web content (I would bet it’s under 40% today).
  • Also as of 2008, 47 languages covered roughly 99% of all web content.

The next Internet revolution will not be in English

This visual depicts about half of the currently approved internationalized domain names (IDNs), positioned over their respective regions.

Notice the wide range of scripts over India and the wide range of Arabic domains. I left off the Latin country code equivalents (in, cn, th, sa, etc.) to illustrate what the Internet is going to look like (at a very high level) in the years ahead.

This next revolution is a linguistically local revolution. In terms of local content, it is already happening. Right now, more than half of the content on the Internet is not in English. Ten years from now, the percentage of English content could easily drop below 25%.

But there are a few technical obstacles that have so far made the Internet not as user friendly as it should be for people in the regions highlighted above. They’ve been forced to enter Latin-based URLs to get to where they want to go. Their email addresses are also Latin-based. This will all change over the next two decades.

For those of us who are fluent only in Latin-based languages, this next wave of growth is going to be interesting, if not a bit challenging. In a Latin-based URL environment, you can still easily navigate to and around non-Latin web sites and brands. For example, if I want to find Baidu in China, I can enter www.baidu.cn. For Yandex in Russia, it’s yandex.ru.

But flash forward a few years and these Latin URLs (though they’ll still exist) may no longer function as the front doors into these markets.

Try Яндекс.рф. It currently redirects to Yandex.ru.

In a few years, I doubt this redirection will exist.

We’re getting close to a linguistically local Internet — from URL to email address. There are still significant technical obstacles to overcome. It will be exciting to see which companies take the lead in overcoming them — as these companies will be well positioned to be leaders in these emerging markets.

UPDATE: I’ve expanded on this topic in a recent article on IP Watch.