fedge Posted February 10, 2008 Share Posted February 10, 2008 Hello All! And thank you in advance. I am trying to find a library, class or function that can take a block of text as a string and figure out it's language. I know its a complex topic, but does anything like this exist? I can do keyword analysis based on common words in each language, but I would imagine someone has already tackled this issue and produced some code for it. Does anyone here know of anything that can handle this? Thanks! Quote Link to comment Share on other sites More sharing options...
phpSensei Posted February 10, 2008 Share Posted February 10, 2008 I would look for opening Tags, Unique Words in some languages that others don't have, or a certan pattern that the code follows. Example: PHP uses vars like $var = "txt"; Javascript uses var carname = "lamborghini" Quote Link to comment Share on other sites More sharing options...
marcus Posted February 10, 2008 Share Posted February 10, 2008 lol, i think he's talking about english, spanish, italian, etc... Quote Link to comment Share on other sites More sharing options...
phpSensei Posted February 10, 2008 Share Posted February 10, 2008 lol, i think he's talking about english, spanish, italian, etc... WOW, I thought he was talking about coding. LOL Quote Link to comment Share on other sites More sharing options...
marcus Posted February 10, 2008 Share Posted February 10, 2008 -slap- Quote Link to comment Share on other sites More sharing options...
fedge Posted February 10, 2008 Author Share Posted February 10, 2008 haha, yes, I am talking about language (english, spanish, etc). Any clues? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.