0

Possible Duplicate:
detect language from string in PHP

how can i detect the lang of the user input string?

for exemple the string:

בדיקה בלה בלה heb אחד שתיים שלוש

will give the result: hebrew

10x!

1

1 Answer 1

0

The easiest way would be to compare the string with a database of dictionaries, and depending on which dictionary the word is contained within, you can find the language.

However, caveats

  • some words will appear in many languages
  • Getting hold of all dictionaries for all the languages you wish to support may not be easy.
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.