
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
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:
When upgrading please check changelog for breaking changes.
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("Dolce far niente");
If you need just a language code you can use DetectCodeAsync. It returns first detected language code.
string languageCode = await client.DetectCodeAsync("Dolce far niente");
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);
AccountStatus accountStatus = await client.GetAccountStatusAsync();
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 healthy version release cadence and project activity because the last version was released less than 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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.