473,796 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Search engines continue to ignore LANG markup

I have three test pages that are marked as Italian, Spanish,
Portuguese, resp. by

Content-Language: it
<html lang="it">
<body lang="it">

and the same for "es" and "pt".

Yahoo regards all three pages as Italian:
http://search.yahoo.com/search?p=%22...l=1&vl=lang_it

Google regards one as English (What??) and two as Spanish:
http://www.google.com/search?q=%22id...%22&lr=lang_en
http://www.google.com/search?q=%22id...%22&lr=lang_es

:-(

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Feb 28 '07 #1
16 2069
Andreas Prilop <An************ ***@trashmail.n etwrote:
>I have three test pages that are marked as Italian, Spanish,
Portuguese, resp. by

Content-Language: it
<html lang="it">
<body lang="it">

and the same for "es" and "pt".

Yahoo regards all three pages as Italian:
http://search.yahoo.com/search?p=%22...l=1&vl=lang_it

Google regards one as English (What??) and two as Spanish:
http://www.google.com/search?q=%22id...%22&lr=lang_en
http://www.google.com/search?q=%22id...%22&lr=lang_es
I'd be surprised if author provided meta data like language info on the
web was broadly reliable. I'd expect better results from using
heuristics to determine a document's language. So I'd expect SEs to use
heuristics, it serves their users better.

I don't speak any of the test languages, but comparing two of the test
pages it seems to me that they do not contain words that are
characteristic for each language, in fact the content appears to be
chosen to confuse heuristic guessing.

The choice of using a list of words instead of natural language probably
also hinders heuristic guessing since it makes it impossible to use
context for similar words in the various languages.

--
Spartanicus
Feb 28 '07 #2
On Wed, 28 Feb 2007, Spartanicus wrote:
I'd be surprised if author provided meta data like language info on the
web was broadly reliable.
Mostly, LANG markup is *missing* from documents. However, if the author
supplies LANG markup, it should be taken as ... well ... authoritative.
The author knows best in which language he writes.
I'd expect better results from using
heuristics to determine a document's language. So I'd expect SEs to use
heuristics, it serves their users better.
That's the same argument used by Internet Explorer 6:

| The server sends "text/plain" but I take "text/html"
| because it seems to make more sense to me.

They can still guess when LANG markup is *missing*.
in fact the content appears to be chosen to confuse heuristic guessing.
Exactly.
The choice of using a list of words instead of natural language probably
also hinders heuristic guessing since it makes it impossible to use
context for similar words in the various languages.
But only with such a list of words, you can take different LANG
parameters. All the words exist in Italian, Spanish, Portuguese.
Each page could be IT or ES or PT.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
Feb 28 '07 #3
Andreas Prilop wrote:
I have three test pages that are marked as Italian, Spanish,
Portuguese, resp. by

Content-Language: it
<html lang="it">
<body lang="it">

and the same for "es" and "pt".

Yahoo regards all three pages as Italian:
http://search.yahoo.com/search?p=%22...l=1&vl=lang_it

Google regards one as English (What??) and two as Spanish:
http://www.google.com/search?q=%22id...%22&lr=lang_en
http://www.google.com/search?q=%22id...%22&lr=lang_es

:-(
Shouldn't you have <meta lang="it"/in the head rather than specifying
the language of elements?
--
am

laurus : rhodophyta : brethoneg : smalltalk : stargate

--
Posted via a free Usenet account from http://www.teranews.com

Feb 28 '07 #4
Andreas Prilop <An************ ***@trashmail.n etwrote:
>I'd be surprised if author provided meta data like language info on the
web was broadly reliable.

Mostly, LANG markup is *missing* from documents. However, if the author
supplies LANG markup, it should be taken as ... well ... authoritative.
The author knows best in which language he writes.
I don't have any statistics, but I'd expect that many documents on the
web are produced by authoring tools that use templates which may contain
false language info. I've done it myself even as a hand coder, my
default document template contains lang="en", on more than one occasion
have I published "Lorem ipsum" demo pages with the default lang="en"
still in there.
>I'd expect better results from using
heuristics to determine a document's language. So I'd expect SEs to use
heuristics, it serves their users better.

That's the same argument used by Internet Explorer 6:

| The server sends "text/plain" but I take "text/html"
| because it seems to make more sense to me.
That is a spec violation (must). There is no spec requirement on a UA to
use language meta data:
"Language information specified via the lang attribute may be used by a
user agent"
http://www.w3.org/TR/html4/struct/dirlang.html#h-8.1
>in fact the content appears to be chosen to confuse heuristic guessing.

Exactly.
>The choice of using a list of words instead of natural language probably
also hinders heuristic guessing since it makes it impossible to use
context for similar words in the various languages.

But only with such a list of words, you can take different LANG
parameters. All the words exist in Italian, Spanish, Portuguese.
Each page could be IT or ES or PT.
I don't think that it is realistic to expect SEs to use language meta
data if they cannot determine the language via heuristics. And as I've
noted before I find their decision to use heuristics logical.

--
Spartanicus
Feb 28 '07 #5
Scripsit Andreas Prilop:

[ Search engines ignore lang attributes and Content-Language headers,
apparently using some guesswork instead. ]

Sadly enough, this will probably not improve. The problem is that there are
too many phoney lang attributes on web pages, typically resulting from
authoring software that spits them out, though clueless authors write them,
too. There are also wrong lang attributes due to simple carelessness. What
would you do, then, if you were a search engine that tried to be useful?

For example, http://www.kko.fi/29566.htm is a page by the Supreme Court of
Finland, actually in Sámi language, but with lang="sa", i.e. claiming to be
in Sanskrit, despite the detailed explanation of the mistake that I sent
months ago. Someone took the trouble of actually typing in the lang
attribute but didn't get it right, and apparently it is impossible to fix
it.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 28 '07 #6
Scripsit António Marques:
Shouldn't you have <meta lang="it"/in the head rather than
specifying the language of elements?
No. By definition, the lang attribute specifies the language of the text in
the element and its attributes. The <metaelement never has any content, so
the above element is completely pointless. Using lang with other attributes
could make sense in odd cases, if you have metainformation in a language
other than the document's overall language, but that would normally be
keyword spamming and could be treated as such.

Followups trimmed; there was no reason for a silent addition of sci.lang.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 28 '07 #7
mb
On Feb 28, 8:54 am, Andreas Prilop <AndreasPrilop2 ...@trashmail.n et>
wrote:
I have three test pages that are marked as Italian, Spanish,
Portuguese, resp. by

Content-Language: it
<html lang="it">
<body lang="it">

and the same for "es" and "pt".
Can you inform a total ignorant? All these, and many other languages
too, can be typed on an international keyboard. Where is the sense of
arbitrarily assigning "language" to texts then?

Feb 28 '07 #8
Jukka K. Korpela wrote:
Scripsit António Marques:
>Shouldn't you have <meta lang="it"/in the head rather than
specifying the language of elements?

No. By definition, the lang attribute specifies the language of the text
in the element and its attributes.
Yes, my fault. I intended to write <meta http-equiv="Content-Language"
content="it"/>, as I suspect that's what search engines look at.
The <metaelement never has any
content, so the above element is completely pointless. Using lang with
other attributes could make sense in odd cases, if you have
metainformation in a language other than the document's overall
language, but that would normally be keyword spamming and could be
treated as such.

Followups trimmed; there was no reason for a silent addition of sci.lang.
There was no reason for the original posting to sci.lang either.
--
am

laurus : rhodophyta : brethoneg : smalltalk : stargate

--
Posted via a free Usenet account from http://www.teranews.com

Feb 28 '07 #9
mb wrote:
> Content-Language: it
<html lang="it">
Can you inform a total ignorant? All these, and many other languages
too, can be typed on an international keyboard. Where is the sense of
arbitrarily assigning "language" to texts then?
It isn't arbitrary, it describes the language the content is written in.
This has implications for (among other things) what pronunciation
dictionary a screen reader should use and what an automated system could do
given an instruction to get some data if it knows what languages the user
can understand.

--
David Dorward <http://blog.dorward.me .uk/ <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Feb 28 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1594
by: Simon Wigzell | last post by:
I generate my webpages from a database. A good many of my links are popup links. For convenience I am using a javascript function to pop up the window e.g. popInternalWindow("Home"); popInternalWindow(pagename) { popupString = "<%=session("DomainName")%>" = "/" + pagename + ".htm"; pagename = window.open(popupString,pagename,'');
11
4237
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will make the design looks a bit rediculous. He also said that the big text cannot be hidden. I am just trying to find a compromise. Here are the questions: (1) Is it true that a page with an <H1> tag and very big font size will make a search...
8
2061
by: Craig Cockburn | last post by:
Hi I'm aware of the use of robots.txt and the use of <META NAME="ROBOTS" CONTENT="index,follow"> However, what would be more useful is to be able to control within a page which elements of the page should be indexed and seen by robots and which elements are simply page furniture and it is safe to ignore or not cache (e.g. adverts).
67
6053
by: Sandy.Pittendrigh | last post by:
Here's a question I don't know the answer to: I have a friend who makes very expensive, hand-made bamboo flyrods. He's widely recognized (in the fishing industry) as one of the 3-5 'best' rod makers in the world. He gets (sic) close to $5000 per custom made flyrod. A surprising number of people buy these fishing rods and never use them....they buy them as art-like investments. He is, after all, the best there is. But if you search on...
64
6424
by: Manfred Kooistra | last post by:
I am building a website with identical content in four different languages. On a first visit, the search engine determines the language of the content by the IP address of the visitor. What the user sees is content in only one language at a time. He or she can then switch to another language and set this as the preferred language, but again he or she sees content in only this one other language. The question now is: How do I get search...
16
2136
by: Kent Feiler | last post by:
If I understand the general direction of recent posts, the idea is to improve the quality of html/css by soliciting help from the various browsers. Browsers can certainly detect problems but they have no sensible place to report them and no way to prevent the same problem from happening over-and-over in multiple sites around the world. That idea simply doesn't work. But how about this one. Suppose we have all of those search engine...
7
9163
by: CAH | last post by:
Hi I need to make at multilanguage language site, and for that I need to identify the users, and register there choice off language. For that i imagine using cookies, since this is the only way to identify the users. But from what I read search engines ignore cookies, and at the same time I would like the users to be able to send links in there choice of language to there friends, so I would like this sort of url scheme.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10242
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5453
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4127
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.