.NET Port of Language Detection Library for Java by @shuyo
Add a reference to LanguageDetection.dll
.
using LanguageDetection;
Load all supported languages
LanguageDetector detector = new LanguageDetector();
detector.AddAllLanguages();
Assert.AreEqual("lv", detector.Detect("čau, man iet labi, un kā iet tev?"));
or a small subset
LanguageDetector detector = new LanguageDetector();
detector.AddLanguages("lv", "lt", "en");
Assert.AreEqual("lv", detector.Detect("čau, man iet labi, un kā iet tev?"));
Apache 2.0