Issue with Hebrew ISO-639 code in API



We recently had an issue with handling Hebrew statuses that were retrieved via Twitter’s standard search API.

According to your documentation, the language filter is based on the ISO-639-1 standard. For Hebrew, the standard code is ‘he’, which replaced the old code, ‘iw’, in 1989. Accordingly, if you search for ‘Hanukkah lang:he’ you get the same results as when you search for ‘Hanukkah lang:iw’.

Yet, in the API, the retrieved statuses contain the old code (‘iw’), rather the new one, which causes mismatches when you wish to match the language from the retrieved status with the language in common ISO-639-1 tables.

Basically, we can treat the issue separately, but I wondered if by any chance it’s possible to update the API to work with the common standard.



Hello @ran5000 - Thank you for reaching out! I will report this to the team, but don’t believe we will see quick movements towards a solution on this one. I suggest for you to find a solution with the current state of the API.

Sorry for the inconvenience.

closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.