Definying a language in NodeXL

Sep 16, 2013 at 10:34 PM
Hi. I'm using NodeXL to search for tweets from a word that is common in more than one language. It is possible to define the language of search in NodeXL? Tanks.
Sep 17, 2013 at 5:31 AM
Edited Sep 17, 2013 at 5:00 PM
Yes, you can do that. To search for tweets about NodeXL in English, for example, enter this in the "Add a vertex..." box on the Import from Twitter Search Network dialog box:
NodeXL lang:en
To search for tweets about Merkel in German, enter this:
Merkel lang:de
So the format is your search term, followed by a space, followed by "lang:", followed by a two-character language code.

Here's the problem, though: As far as I can tell, Twitter hasn't documented which languages it supports or what the language codes are. (My guess is that the language codes correspond to an international standard called ISO 639-2, but that doesn't help much if you don't know which languages Twitter supports.) So you have to do some detective work.

Here is one way to tell if a language you're interested in is supported by Twitter, and what its language code is if the answer is "yes":

1) Go to

2) In the "All of these words" box, enter anything. The words don't matter. I'll enter "Merkel" here.

3) Open the "Written in" pull-down menu. That is apparently the list of languages Twitter supports. If your language is not on the list, you're out of luck. If it is on the list, select the language in the list. I'll select "German (Deutsch)" here.

4) Click the Search button.

5) Pay no attention to the search results. What you want is the address in your browser's address bar, which will look something like this:
6) The language code is the two-character sequence following the "lang%3A" in the address. That's "de" in this case.

-- Tony
Sep 18, 2013 at 10:02 PM
Thank you. I used lang:pt for potuguese and it worked.