
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.