// Don't forget to deploy a language profile (e.g. Core14.profile.xml) with your application.
// You can do it with referencing a language profile as content that should be copied to output
// in your application project (.exe, website, etc.).
// Language profiles are located either in <NTextCatRelease>\LanguageModels\
// or <YOURSOLUTION>\packages\IvanAkcheurov.NTextCat.Lib.0.2.1.1\ (if you get NTextCat from NuGet)
var factory = new RankedLanguageIdentifierFactory();
var identifier = factory.Load("Core14.profile.xml");
var res = identifier.Identify("your text to get its language identified");