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! Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/ 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" Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/#findComment-462980 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... Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/#findComment-462983 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 Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/#findComment-462987 Share on other sites More sharing options...
marcus Posted February 10, 2008 Share Posted February 10, 2008 -slap- Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/#findComment-462995 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? Link to comment https://forums.phpfreaks.com/topic/90294-language-recognition/#findComment-463150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.