
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Detects language of the given text. Returns detected language codes and scores.
Using the .NET Core command-line interface (CLI) tools:
dotnet add package DetectLanguage
Using the NuGet Command Line Interface (CLI):
nuget install DetectLanguage
Using the Package Manager Console:
Install-Package DetectLanguage
From within Visual Studio:
For a comprehensive list of examples, check out the API documentation.
Before using Detect Language API client you have to setup your personal API key. You can get it for free by signing up at https://detectlanguage.com
using DetectLanguage;
DetectLanguageClient client = new DetectLanguageClient("YOUR API KEY");
DetectResult[] results = await client.DetectAsync("Buenos dias señor");
If you need just a language code you can use DetectCodeAsync
. It returns first detected language code.
string languageCode = await client.DetectCodeAsync("Buenos dias señor");
It is possible to detect language of several texts with one request.
This method is significantly faster than doing one request per text.
To use batch detection just pass multiple texts to BatchDetectAsync
method.
string[] texts = {"labas rytas", "good morning"};
DetectResult[][] results = await client.BatchDetectAsync(texts);
UserStatus userStatus = await client.GetUserStatusAsync();
Language[] languages = await client.GetLanguagesAsync();
Detect Language API .NET Client is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
FAQs
Language Detection API Client for .NET (Official Library)
We found that detectlanguage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.