3

I'm looking for a library or technique to detect the input language of blocks of text provided by users. Online lookups (like Google translate) won't work for this task as I'm writing an app which must run offline.

Thanks.

4 Answers 4

2

Here are two more n-gram-based gems you might want to try. They work offline.

Sign up to request clarification or add additional context in comments.

1 Comment

The first one gives me камон is English.
2

I'm using CLD which I really like, succinct and easy to use. Give it a try.

1 Comment

yes! i'm too but this version github.com/BanjoInc/cld2 - offline tool that works perfectly!
1

For anyone interested, I've found http://rubygems.org/gems/kenwaln-whatlanguage, which is performing excellently.

Comments

0

A quick demo of WhatLanguage in Ruby:

http://www.youtube.com/watch?v=lNqZ2cqOReo&list=UUJ_3fstMOH-g4yBxtvgAWkw&index=0&feature=plcp

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.