|
|
||||||
|
#1
|
|
|
|
|
how to determine what language a c# string is written in? is there any C#
method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. |
|
|
|
#2
|
|
|
|
|
> how to determine what language a c# string is written in? is there any C#
> method to take a string and return what language it is in? e.g. english, > hindi, spanish, etc. There is nothing standard in C#, .NET, Win32, whatever. And there is no 100% reliable method to do that. In what language is "chat"? Is is English, or French (cat)? The longer the text, the better the chances, but nothing can be 100% reliable. But there are some decent statistical methods. Here are some links (or Google for language identification algorithm): http://people.csail.mit.edu/hazen//p...ers_thesis.pdf http://complingone.georgetown.edu/~langid/acq_info.html http://search.cpan.org/dist/Text-Language-Guess/ |
|
#3
|
|
|
|
|
I think he was asking about the run-time langauge and not 'speaking
language'. If that's the case, OP can get the current culture and language from the thread of execution. That would work for local applications. If the string is remoted from another appdomain, you can find the executing thread as well. |
|
#4
|
|
|
|
|
"Alvin Bruney [ASP.NET MVP]" <www.lulu.com/owc> wrote in message
news:7278 [..] > > [Shameless Author plug] > The O.W.C. Black Book, 2nd Edition > Exclusively on [..] .99 > ------------------------------------------------------- >> > "Mihai N." <nmihai_year_2000> wrote in message > news:hain The last sentence in the OP leads me, as well as Mihal, to believe that the OP'er is asking about spoken language (where the e.g. part is 'english, hindi, spanish, etc.'). :) Mythran |
|
|
| Similar Threads | |
| how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. |
|
| how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. how to determine what language a c# string is written in? is there any C# method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. |
|
| how to determine what language a string is written in? is there any method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. how to determine what language a string is written in? is there any method to take a string and return what language it is in? e.g. english, hindi, spanish, etc. |
|
| Read an email written in Hindi(Indian) language in Outlook 2003.
|
|
| display an english text string in another language Hi all, I'm very new with COBOL and working on displaying an english text string in another language such as korean, japanese, farsi, etc. This is what I have in my program... |
|
|
All times are GMT. The time now is 11:41 AM. | Privacy Policy
|