Operating System - Linux
1756310 Members
3225 Online
108844 Solutions
New Discussion

Internationalizing a Web site - One non classic approach based on the query

 
Ph Vouters
Valued Contributor

Internationalizing a Web site - One non classic approach based on the query

Dear Linux and Windows users,

 

To determine the tongue spoken by a Web visitor, what's best than determining
his spoken language directly from his query to a search engine. This may help in
presenting him a Web document written in his mother dialect.

This is all the subject of the Web document at :

http://vouters.dyndns.org/tima/Linux-Windows-Perl-Aspell-Determining_the_country_of_a_Web_query.html

which contains a Perl and a bash codes. The included code has been finally tested using a CSV

formatted file containing more than 50,000 lines, each one representing a Web query to a

company's search engine from all over the world.

 

In the hope you will find interest with.


Warmest regards to the Linux and Windows communities.

Philippe

1 REPLY 1
Ph Vouters
Valued Contributor

Re: Internationalizing a Web site - One non classic approach based on the query

If interested in compared performances between Ruby/FFI/ffi-aspell and Perl/Text::Aspell refer to this document at:

http://vouters.dyndns.org/tima/Linux-Ruby-Aspell-Determining_the_country_of_a_Web_query.html

 

If looking for the Perl/Text::Aspell  performances using as per wc -w:

1/ a file of 185 words

2/ a file of 197111 words

refer to the URL in base post.

 

As it seems someone should fix the said bugs in Raspell and get rid from Ruby/FFI which appears to slow if looking after perforances. One fact : Perl does not yet know about libffi unlike Ruby/Python.