Can we add a language, or primary language field to the /sites API?

For classification purposes, I think it would go a long way for bots trying to target specific languages. For example, I'm currently trying to build a comment bot out to seek out possibly toxic comments (Similar to queen), and right now I can really only examine English comments.

Right now, there is no easy way to view classification, and see if the primary language of the site should be English. Since these sites all have a preferred language, I think it would be beneficial to developers to add this field.

  • Nice to have but, on the flip side, this is something that your app can (should) cache permanently anyway. So you'd only really need it for new sites. – Brock Adams Nov 1 at 0:23
  • With 300+ sites, to have to classify them all once, it can be annoying. – FrankerZ Nov 1 at 2:36

I'm not sure this can be provided by the API, at least not in the form you need it. Yes, the 'user interface' language for Русский язык and the non-English Stack Overflow sites:

is something else than English; the language value is stored somewhere and could be exposed via the API. However, this is not the case for the dozen language sites across the network:

Q&A on Latin Language and Constructed Languages seems to be solely in English; the same holds for e.g. questions about Hebrew on Mi Yodeya.

I'm not familiar with all of them, but many use their specific language quite often; often enough to worry about if you're doing an automated classification. There are APIs available to determine what language a certain text is in. Also, I've seen (through Smoke Detector) countless times abusive language in Greek, Turkish or Thai on Stack Overflow (though this was mostly in posts, not comments). A complete list of sites (partially) in another language is maintained here.

Fun fact: Japanese is the only non-beta foreign language site, but the only Stack Overflow to be (still) in beta.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .