Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to determine that a person who is typing in text box is english langugae or urdu or arbaic language??
Posted
Comments
Sergey Alexandrovich Kryukov 30-Sep-13 12:57pm    
Why?! And what if the user is typing in some other language, or a mix of the languages?!

No, it makes no sense. You need to define what is the criteria of determining the language. For example, you cannot tell Arabic from Persian, you can only guess, if there are many valid words in the text, then you could use some dictionaries and statistics.

—SA
Muhamad Faizan Khan 30-Sep-13 13:02pm    
for the sake of searching process. If the user type english system will run the specific english column query and if the user wrote in arabic then the system will run specific arabic column query search.
Sergey Alexandrovich Kryukov 30-Sep-13 13:04pm    
You can easily tell Latin from Perso-Arabic, it should be apparent. But what if this is a mix?
—SA
Muhamad Faizan Khan 30-Sep-13 13:10pm    
simple the searching will not be render.
Sergey Alexandrovich Kryukov 30-Sep-13 13:13pm    
What are you even talking about? Render what?
...Oh, I guess I see: it should indicate that the search is impossible.
But this is a wrong approach. Why not simply search all together, and return "not found" if nothing can be found. It depends on what you are searching.
But I already answered. Look into Unicode standard. It's easier to look through all your tables than to determine the language. Why?
—SA

1 solution

Some excellent answers are waiting for your view.Check these:
Detect language of text[^]
How to detect the language of a string[^]
 
Share this answer
 
Comments
Muhamad Faizan Khan 1-Oct-13 1:24am    
well rate5 but the problem it associated with internet connection.
if no connection no works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900