Developer Network Home - Help

Yahoo! search results now with natural language support (Yahoo! Developer Network blog)

« The Highland Fling 2008 - The browser and beyond is round the corner | Main | Yahoo! Media Player first milestone »

Yahoo! search results now with natural language support

March 13, 2008

I am happy to announce that based on some research and a Greasemonkey hack to make people aware of the consequences, Yahoo! is now a search engine that has natural language search results.

Natural language?

HTML has a wonderful attribute called lang that allows you to define the language of the text in the current HTML element. This seems a bit superfluous as it has nothing to do with the display of the language specific character set (which is the encoding and another issue). However, defining the language has other benefits.

The first one is that search engines and other robots know what language the text is in and thus have a much less harder job to differentiate between keywords and stopwords.

The second, and most important has to do with accessibility. If you do not see the text but you get it read out to you then the pronounciation is very important. Visually impaired surfers use screen readers to tell them what is on the current page, and by defining the language, you make this a lot easier. Screen readers have different voices for different languages with the correct pronounciation rules. This is best explained with an example.

Small attribute, great difference - with lang and without lang

The following files are recordings of what screen readers will tell visually impaired users on a search result page. They have been slowed down to make it easier for people that can see to follow, normally users will have the speed set a lot faster.

Thanks must go to Artur Ortega for testing with Jaws and Ryan Grove for adding the necessary information.

Posted at March 13, 2008 4:58 AM

rss     Add to My! Yahoo

Comments

Saw this on TechCrunch, and was hoping to see this announcement.
Great forward thinking. This adds to the growth of a quality net!

Thanks!

Posted by: Ed at March 13, 2008 9:23 AM

Post a comment

Comment Policy: We encourage comments and look forward to hearing from you. Please note that Yahoo! may, in our sole discretion, remove comments if they are off topic, inappropriate, or otherwise violate our Terms of Service.




Remember Me?


Copyright © 2008 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings