views:

269

answers:

3

Hi all!

Is there any language recognition open-source for Java? Found only for c/c++.

UPD:

I`m talking about human text language. Example:

Input: My name is John. Output: English.

Input: Ich heisse John. Output: German.

Input: Меня зовут Джон. Output: Russian.

+2  A: 

See what you think of the version in Apache Tika. This assumes that you want to find out what language text is in, as opposed to wanting to build a parser for a programming language.

bmargulies
perhaps provide a link to Tika
Bozho
+1  A: 

I think ANTLR is pretty much standard.

Bozho
One of us is confused. I thought he wanted a way to tell if text was in Chinese or Japanese, and you think he wants to make a parser! We'll see.
bmargulies
@bmargulies - it could not be inferred from the question, so both answers make sense.
Bozho
@Bozho I completely agree.
bmargulies
A: 
Mondain