Khoa, One "lateral" way of doing this is to try to translate the word from the language you think it is to some other language. When the result is different form the word you put in, the word is definitely known! An equal values would translate into - "probably not known". You can simply encapsulate this as a general function isThisWordIn( word, language ), returning true/false.
We have tried to translate several languages back and forth, and I found that some sentences will not translate, at all. Finish to be exact: in some cases entire sentences are not translated, also you should probably convert the word to lowercase before trying the above. Regards Per On Sep 5, 4:47 am, Khoa <[EMAIL PROTECTED]> wrote: > Somebody submitted the > issue.http://code.google.com/p/google-ajax-apis/issues/detail?id=82 > > I added my comment. Hope it will be implemented soon. > Thanks > > On Sep 5, 2:52 am, "Ben Lisbakken" <[EMAIL PROTECTED]> wrote: > > > > > You should put this in the issue tracker, and have people vote it up. We > > try as hard as we can to implement popular > > issues.http://code.google.com/p/google-ajax-apis/issues/list > > > -Ben > > > On Tue, Sep 2, 2008 at 11:25 PM, Khoa <[EMAIL PROTECTED]> wrote: > > > > 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?- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
