# what is the best way to determine what language an online text is in?

**URL:** <https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412>\
**Category:** Factual Questions\
**Created:** [February 18, 2010, 12:08am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412 "2010-02-18T00:08:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnold\_Winkelried](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@Arnold\_Winkelried](https://boards.straightdope.com/u/Arnold_Winkelried)\
**Post date:** [February 18, 2010, 12:08am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/1 "2010-02-18T00:08:27Z")

</div>

I was search for something today and ended up at a Wikipedia site in an unknown language. The language was very similar to one I knew, but I could tell that it was not the language that I knew. I had to do a bit of searching to finally figure it out.

For those of you that like puzzles, here is a sample page in that language:

> **[Denis Diderot](https://roa-tara.wikipedia.org/wiki/Denis_Diderot)**
>
> «Soltanto la presenza dell'uomo rende interessante l'esistenza degli esseri(...). L'uomo è il termine unico dal quale occorre partire e al quale occorre far capo, se si vuol piacere, interessare, commuovere, perfino nelle considerazioni più aride e nei particolari più secchi.»
> Denis Diderot
> Denis Diderot (Langres, 5 ottommre 1713 – Parigge, 31 luglie 1784) ha state 'nu felosofe, enciclopedista e screttore frangese ; ha state une de le massime rappresendande de l'Illuminisme e promotore e edito...

and the language is, I believe,

[Tarantino](http://en.wikipedia.org/wiki/Tarantino_language)

So suppose I find a text in an unknown language. What is the easiest way to determine what language the text is in? Is there a website where I can type in (or copy and paste) some text, and be told the language for that text?

---

<div class="post-metadata">

**Author:** ![Harmonious\_Discord](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@Harmonious\_Discord](https://boards.straightdope.com/u/Harmonious_Discord)\
**Post date:** [February 18, 2010, 12:13am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/2 "2010-02-18T00:13:55Z")

</div>

There are sites to identify languages. I’ve never used one.

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [February 18, 2010, 12:21am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/3 "2010-02-18T00:21:40Z")

</div>

I don’t know of a general way that is very reliable, and it’s going to be harder for relatively minor languages. That page is clearly in a Romance language, and I did some snooping to confirm your guess that it is, probably, in Tarantino – a language that I hadn’t heard of before.

One method, which probably won’t work for this text, is to look up a few words in the [Wiktionary](http://en.wiktionary.org/wiki/Wiktionary:Main_Page), since that doesn’t require you to know the language of a word before looking it up. But, for example, that page didn’t know about “ottommre”, used in the text to (probably) mean October.

---

<div class="post-metadata">

**Author:** ![Tapioca\_Dextrin](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@Tapioca\_Dextrin](https://boards.straightdope.com/u/Tapioca_Dextrin)\
**Post date:** [February 18, 2010, 12:41am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/4 "2010-02-18T00:41:48Z")

</div>

[This page](http://www.labnol.org/internet/identify-language-of-text/8441/) has a list of the most common tools. None of them recognise Tarantino, though.

---

<div class="post-metadata">

**Author:** ![Dr.Drake](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@Dr.Drake](https://boards.straightdope.com/u/Dr.Drake)\
**Post date:** [February 18, 2010, 1:03am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/5 "2010-02-18T01:03:52Z")

</div>

> [@Arnold\_Winkelried](#):
>
> …For those of you that like puzzles, here is a sample page in that language:  
> [Denis Diderot - Wikipedia](http://roa-tara.wikipedia.org/wiki/Denis_Diderot)…

Agreed that the “language identifier” sites work best for national languages, and poorly if at all for dialects. Whatever process you went through to identify it as Tarantino is probably the best you can do. Sometimes I scan a site for common words, and then type them in alongside distincting English words like “through” and hope I get a bilingual page to clarify things.

---

<div class="post-metadata">

**Author:** ![Mike.V](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@Mike.V](https://boards.straightdope.com/u/Mike.V)\
**Post date:** [February 18, 2010, 2:21am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/6 "2010-02-18T02:21:14Z")

</div>

If you happen to find it on a Wikipedia page you can (as I did in this case) use the inter-wiki language links in the lower left of an article page.

First I clicked over to the English version of the page ([Denis Diderot - Wikipedia](http://en.wikipedia.org/wiki/Denis_Diderot)).

I then did ‘View Source’ and searched for the URL fragment of the mystery Wikipedia language (“roa-tara”) and found the mirror link _back_ to the mystery language:

```auto

<li class="interwiki-roa-tara"><a href="http://roa-tara.wikipedia.org/wiki/Denis_Diderot">Tarandíne</a></li>

```

Which is the name of the language in its native tongue. A quick Google search should turn up the name of the language in English.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [February 18, 2010, 4:19am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/7 "2010-02-18T04:19:46Z")

</div>

> [@Mike.V](#):
>
> If you happen to find it on a Wikipedia page you can (as I did in this case) use the inter-wiki language links in the lower left of an article page.
> 
> First I clicked over to the English version of the page ([Denis Diderot - Wikipedia](http://en.wikipedia.org/wiki/Denis_Diderot)).
> 
> I then did ‘View Source’ and searched for the URL fragment of the mystery Wikipedia language (“roa-tara”) and found the mirror link _back_ to the mystery language:
> 
> ```auto
> 
> <li class="interwiki-roa-tara"><a href="http://roa-tara.wikipedia.org/wiki/Denis_Diderot">Tarandíne</a></li>
> 
> ```
> 
> Which is the name of the language in its native tongue. A quick Google search should turn up the name of the language in English.

That’s pretty good. Normally I would have just recomended looking up the ISO code that starts all wiki addresses, but Tarantino is such a small language that it does not have an official one. Technically, Wikipedia doesn’t allow this, but there was a [big fight](http://meta.wikimedia.org/wiki/Proposals_for_closing_projects/Closure_of_Tarantino_Wikipedia), and it couldn’t get shut down.

As for the OP: yeah, it’s really hard to identify a language that is spoken by so few people unless you speak it, or are a language expert. The URL is probably the best clue you had. Especially since it appears to have been translated by bot (note all the red links).

---

<div class="post-metadata">

**Author:** ![njtt](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@njtt](https://boards.straightdope.com/u/njtt)\
**Post date:** [February 18, 2010, 4:53am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/8 "2010-02-18T04:53:23Z")

</div>

Isn’t the Tarantino language mostly obscenities and extreme violence? 😃

---

<div class="post-metadata">

**Author:** ![Johanna](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johanna/32/8318_2.png) [@Johanna](https://boards.straightdope.com/u/Johanna)\
**Post date:** [February 18, 2010, 11:51am UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/9 "2010-02-18T11:51:20Z")

</div>

In _The Story of Language_ by Mario Pei, he gives a number of pointers for various languages that can allow you to identify the language of a text using a quick visual scan. There are certain distinguishing features for each one. For example, double accents are unique to Hungarian. Of course, he only covered the more familiar languages of the world. For really abstruse ones like in the OP you need more specialized acquaintance to pinpoint them. But a quick glance told me instantly that this example was from some region of Italy, and I have enough familiarity with Italian regional idioms to recognize it as obviously Southern Italian. My first thought was Neapolitan, but I wasn’t very far off.

Japanese text is easy to tell apart from Chinese at a glance, even if you can’t understand a single character. Japanese has a very frequent occurrence of syllabic glyphs belonging to the _hiragana_ and _katakana_ character sets. _Kana_ are much simpler in form than most Chinese characters. Japanese has a lot of them, while they’re absent in Chinese.

For languages written in the Arabic alphabet, remember that Arabic, being the original user of this alphabet, has fewer letters. Other languages adapted it by creating additional letters to cover their sounds that don’t exist in Arabic. Persian has 4 additional letters. Pashto, Sindhi, and Urdu have a lot more, and a different character set for each language. Although to recognize them does require a more fine-grained acquaintance with the various features. If you already know some Arabic, the differences will jump out at you immediately, but the catch is you have to know some Arabic first.

In general, I would start by first identifying the language family, and then picking out more specific clues that distinguish languages within the family, and gradually narrow it down. As much as possible, develop a wide knowledge base by learning to recognize the specific identifying features of each language.

My favorite method for identifying the language of a written text, in conjunction with the above principles, is to search sample words in Google, and you can almost always get useful clues that way. Sometimes a search hit will even name the language outright. It helps to pick out the words or phrasings that seem less frequent, and hence more peculiar to the specific language.

If I want to identify the ethnicity of someone’s name, I search for it as a keyword in the Library of Congress database, and often it comes up in connection with a specific language or culture. Context usually provides a wealth of information. It’s all about context.

---

<div class="post-metadata">

**Author:** ![Floater](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Floater](https://boards.straightdope.com/u/Floater)\
**Post date:** [February 18, 2010, 12:36pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/10 "2010-02-18T12:36:35Z")

</div>

The Library of Congress doesn’t recognise a language called Tarantino. I would just call it Italian.

ETA Neither does [Ethnologue](http://www.ethnologue.com/language_index.asp), which, in my opinion, is very prone to call various dialects languages instead.

---

<div class="post-metadata">

**Author:** ![psychonaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/psychonaut/32/4655_2.png) [@psychonaut](https://boards.straightdope.com/u/psychonaut)\
**Post date:** [February 18, 2010, 12:46pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/11 "2010-02-18T12:46:42Z")

</div>

> [@](#):
>
> For example, double accents are unique to Hungarian.

I think you meant to say double acute accents, since using double (i.e., two different) accents on the same letter is not done in Hungarian, but is done in some other more widely spoken languages such as Vietnamese. (Actually, though, double acute accents are not limited to Hungarian; they’re used in the Chuvash language, and in some transcription systems.)

---

<div class="post-metadata">

**Author:** ![Floater](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Floater](https://boards.straightdope.com/u/Floater)\
**Post date:** [February 18, 2010, 12:52pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/12 "2010-02-18T12:52:54Z")

</div>

> [@psychonaut](#):
>
> .. but is done in some other more widely spoken languages such as Vietnamese …

And [Estonian](http://et.wikipedia.org/wiki/Tallinn).

---

<div class="post-metadata">

**Author:** ![psychonaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/psychonaut/32/4655_2.png) [@psychonaut](https://boards.straightdope.com/u/psychonaut)\
**Post date:** [February 18, 2010, 12:56pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/13 "2010-02-18T12:56:21Z")

</div>

> [@Arnold\_Winkelried](#):
>
> So suppose I find a text in an unknown language. What is the easiest way to determine what language the text is in?

If it’s on a website, check the website itself for clues. (X)HTML tags and HTTP headers may include language metadata (in the form of two- or three-letter ISO 639 codes). Many multilingual websites, such as Wikipedia, will alternatively use ISO 639 codes as part of the URL to distinguish copies of the same page in different languages.

You can also use the top-level domain to help guess at the language of the web page. They usually encode countries, and not languages, but knowing the country of origin can be a starting point at least. For example, if you see a bunch of Cyrillic text on a .bg site, it’s more likely to be Bulgarian than, say, Ukrainian.

---

<div class="post-metadata">

**Author:** ![psychonaut](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/psychonaut/32/4655_2.png) [@psychonaut](https://boards.straightdope.com/u/psychonaut)\
**Post date:** [February 18, 2010, 12:58pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/14 "2010-02-18T12:58:06Z")

</div>

> [@Floater](#):
>
> And [Estonian](http://et.wikipedia.org/wiki/Tallinn).

Estonian is not more widely spoken than Hungarian. And as far as I know it doesn’t use multiple accents simultaneously on the same glyph.

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [February 18, 2010, 1:03pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/15 "2010-02-18T13:03:54Z")

</div>

If you go to [http://translate.google.com/](http://translate.google.com/), select English as the target language, then select “detect language” as the source, it usually gets it right.

However, it doesn’t tell you what the feckin’ language was. :smack:

---

<div class="post-metadata">

**Author:** ![Floater](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Floater](https://boards.straightdope.com/u/Floater)\
**Post date:** [February 18, 2010, 1:11pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/16 "2010-02-18T13:11:00Z")

</div>

> [@psychonaut](#):
>
> And as far as I know it doesn’t use multiple accents simultaneously on the same glyph.

Sorry, it was my poor eye-sight that made a tilde look like a double acute accent.

---

<div class="post-metadata">

**Author:** ![Johanna](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johanna/32/8318_2.png) [@Johanna](https://boards.straightdope.com/u/Johanna)\
**Post date:** [February 18, 2010, 1:16pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/17 "2010-02-18T13:16:13Z")

</div>

> [@psychonaut](#):
>
> I think you meant to say double acute accents, since using double (i.e., two different) accents on the same letter is not done in Hungarian, but is done in some other more widely spoken languages such as Vietnamese. (Actually, though, double acute accents are not limited to Hungarian; they’re used in the Chuvash language, and in some transcription systems.)

Yes, I considered specifying “double acute accents” as I was writing that, but then when writing for an audience that includes many nonlinguists, there’s always a question of balancing precision in technical terminology vs. readability for the uninitiated. It was a judgment call. But I’ll grant you that “gotcha.”

Chuvash is written in Cyrillic, so it isn’t in danger of being confused with Hungarian, which kind of goes without saying.

I didn’t say to search language texts in LoC (I recommend Google for that), but personal names, because LoC metadata is highly developed for personal names in particular.

> [@Johanna](#):
>
> My first thought was Neapolitan, but I wasn’t very far off.

Especially since as [this map](http://www.evolpub.com/Italiandialects/ITALmap.GIF) shows, Taranto\* and Naples are in the very same dialectal area. The map shows a lot of dialects, but it isn’t granular enough to include Taranto dialect, which is just one variant of Pugliese. Are we going to wind up with a separate dialectal Wikipedia for every damn city in Europe?  
\*Firefox spellchecker wants me to change the city’s name to “Tarantula” \<snerk\> Of course.

---

<div class="post-metadata">

**Author:** ![Giles](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/giles/32/60_2.png) [@Giles](https://boards.straightdope.com/u/Giles)\
**Post date:** [February 18, 2010, 1:30pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/18 "2010-02-18T13:30:29Z")

</div>

> [@Johanna](#):
>
> Are we going to wind up with a separate dialectal Wikipedia for every damn city in Europe?

I look forward to the Glaswegian Wikipedia.

---

<div class="post-metadata">

**Author:** ![Floater](https://avatars.discourse-cdn.com/v4/letter/f/dc4da7/32.png) [@Floater](https://boards.straightdope.com/u/Floater)\
**Post date:** [February 18, 2010, 1:38pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/19 "2010-02-18T13:38:38Z")

</div>

> [@Giles](#):
>
> I look forward to the Glaswegian Wikipedia.

Will [this](http://sco.wikipedia.org/wiki/Glesga) do for the time being?

---

<div class="post-metadata">

**Author:** ![jjimm](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@jjimm](https://boards.straightdope.com/u/jjimm)\
**Post date:** [February 18, 2010, 1:39pm UTC](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412/20 "2010-02-18T13:39:13Z")

</div>

> [@Giles](#):
>
> I look forward to the Glaswegian Wikipedia.

[Not far off](http://sco.wikipedia.org/wiki/Main_Page).

[Next page](https://boards.straightdope.com/t/what-is-the-best-way-to-determine-what-language-an-online-text-is-in/529412.md?page=2)
