On Sun, Dec 26, 2010 at 5:11 AM, epomqo <wenzi0...@gmail.com> wrote: > > And apparently the "lang" parameter sometimes doesn't work: I still > get tweets in other languages. >
>From my experience the lang parameter, is not a language detection algorithm. It just pays attention to the language the user has set in their profile settings. If they haven't changed it, the default of English is left set, and you get their tweets no matter what the lang parameter is sent to. If you don't use the lang parameter, you get all tweets that match the search in any language. If you set lang=en, you get far fewer tweets in languages other than English, but at least 10-20% are not in English. Of course that depends on whether your search words match another language. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk