assaqqaf
assaqqaf

Reputation: 1585

detect the language of input?

I have an input in my form, I wanna find a solution to determine which language is typed in..( is it English, french, arabic, or Hebrew ..)...

in PHP script, also I use UTF-8 encode.

Upvotes: 1

Views: 601

Answers (4)

vsr
vsr

Reputation: 3198

Use google translate API http://code.google.com/apis/ajaxlanguage/documentation/#Detect

On server side, try this.I haven't tried it though.

And please do read the terms before using it. :)

Upvotes: 5

michiel
michiel

Reputation: 6266

You can use a perl script for that, see: http://odur.let.rug.nl/~vannoord/TextCat/Demo/

Several competing/alternative products are also listed on that page.

Upvotes: 2

Mark Byers
Mark Byers

Reputation: 838006

Google have an API for language detection that you could use:

http://code.google.com/intl/da/apis/ajaxlanguage/documentation/#Detect

Upvotes: 2

Sarfraz
Sarfraz

Reputation: 382656

You might want to use Google translate API for that.

Upvotes: 2

Related Questions