How about a same word are used in many language? For example: "lung" It has meaning in Vietnamese and English. When I try Google language detect, it response with "ROMANIAN" It means "lung" also has meaning in Romanian.
My goal is how to know the word 'lung' whether is Vietnamese or not. I think it should have a function detect a word against a specific language and return yes, no or reliable percent... Or, it detect language and return with a list of possible languages. On Aug 28, 2:42 am, "Ben Lisbakken" <[EMAIL PROTECTED]> wrote: > Khoa -- > > If you are trying to detect the language of a single word, such as "an", > then you are bound to have problems. The longer the sentence, the more > accurate language detection works. If you are trying to just see if a > phrase is Vietnamese, use: > google.language.detect(text, callback) > > And check if the output is Vietnamese. > > -Ben > > On Wed, Aug 27, 2008 at 3:37 AM, Khoa <[EMAIL PROTECTED]> wrote: > > > Is there any way to detect whether a text is a specific language or > > not? > > I think in some cases, a word can be used in many languages. > > > For example: > > I try to detect the word "an". The detection script show that it is > > GERMAN, but it also has meaning in Vietnamese and English as well. > > > Therefore, I only want to know whether the text is Vietnamese or not. > > I don't want to know what language is it. > > > Is it possible? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
