Click here to Skip to main content
16,004,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
Can we recognize the Language based on the Text like we have in Google translate when we paste the Text in the Translator it will automatically choose the source language ?

Please help me.
Posted

1 solution

find some of the words in your files, and look them up in a dictionary. If 95% of the words, you look up, is in the english dictionary, then it's english.
I realize that it's not the best way to do it, but it's simple and easy. However if it isn't satisfying try reading this paper
AUTOMATIC LANGUAGE IDENTIFICATION: AN ALTERNATIVE
UNSUPERVISED APPROACH USING A NEW HYBRID ALGORITHM
[^]
or
Google automatic language identification[^]
 
Share this answer
 
v2

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