Get language of a page
I want to get the language of a page. I know what are W3C recommendations for this and that this can be done by reading the source and parsing the HTML and META and XHTML tags.
But the issue is, that many sites do not follow the W3C standards and therefore, they do not have any meta information about the language. In such cases, is there a free API or something that I can use to get the langauge of a website ?
Google allow you to use their translation API to do this sort of thing, but I couldn't see a free option on the web site. An alternative you could try is the Language Detection API site, which does have a free option, and they provide a client library for PHP.
Thank you ! I will try the other link you provided.