Panlingo.LanguageIdentification.CLD2.Native 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Panlingo.LanguageIdentification.CLD2.Native --version 0.1.1                
NuGet\Install-Package Panlingo.LanguageIdentification.CLD2.Native -Version 0.1.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Panlingo.LanguageIdentification.CLD2.Native" Version="0.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Panlingo.LanguageIdentification.CLD2.Native --version 0.1.1                
#r "nuget: Panlingo.LanguageIdentification.CLD2.Native, 0.1.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Panlingo.LanguageIdentification.CLD2.Native as a Cake Addin
#addin nuget:?package=Panlingo.LanguageIdentification.CLD2.Native&version=0.1.1

// Install Panlingo.LanguageIdentification.CLD2.Native as a Cake Tool
#tool nuget:?package=Panlingo.LanguageIdentification.CLD2.Native&version=0.1.1                

Panlingo.LanguageIdentification.CLD2

Welcome to Panlingo.LanguageIdentification.CLD2, a .NET wrapper for the Chrome Language Detection (CLD2) library by Google Inc. This package seamlessly integrates language identification capabilities into .NET applications, enabling accurate and efficient recognition of over 80 languages with minimal effort. Perfect for applications dealing with multilingual texts or requiring automatic language detection.

Requirements

  • Runtime: .NET >= 5.0
  • OS: Linux (Ubuntu, Debian), Windows 10+ or Windows Server 2019+, macOS
  • Arch: AMD64 (or ARM for macOS)

Installation

To integrate the CLD2 functionality, you need to add this NuGet package to your project:

dotnet add package Panlingo.LanguageIdentification.CLD2

Usage

Integrating the CLD2 library into your .NET application is straightforward. Here’s a quick guide to get you started:

  1. Install the Package: Ensure you have added the Panlingo.LanguageIdentification.CLD2 package to your project using the provided installation command.
  2. Initialize the Library: Follow the example snippet to initialize and use the CLD2 library for detecting languages.
using Panlingo.LanguageIdentification.CLD2;

class Program
{
    static void Main()
    {
        // Create an instance of the language detector
        using var cld2 = new CLD2Detector();

        // Input text to detect language
        var predictions = cld2.PredictLanguage("Привіт, як справи?");

        // Print the language
        foreach (var prediction in predictions)
        {
            Console.WriteLine(
                $"Language: {prediction.Language}, " + 
                $"Probability: {prediction.Probability}, " +
                $"IsReliable: {prediction.IsReliable}, " + 
                $"Proportion: {prediction.Proportion}"
            );
        }
    }
}

Alternatives

If you are exploring other options, here are some alternatives to consider:

Supported languages

Language Name ISO 639-1
Afrikaans af
Albanian sq
Arabic ar
Armenian hy
Azerbaijani az
Basque eu
Belarusian be
Bengali bn
Bihari bh
Bulgarian bg
Catalan ca
Cebuano ceb
Cherokee chr
Croatian hr
Czech cs
Chinese zh
Chinese_T zh-Hant
Danish da
Dhivehi dv
Dutch nl
English en
Estonian et
Finnish fi
French fr
Galician gl
Ganda lg
Georgian ka
German de
Greek el
Gujarati gu
Haitian_Creole ht
Hebrew iw
Hindi hi
Hmong hmn
Hungarian hu
Icelandic is
Indonesian id
Inuktitut iu
Irish ga
Italian it
Javanese jw
Japanese ja
Kannada kn
Khmer km
Kinyarwanda rw
Korean ko
Laothian lo
Latvian lv
Limbu lif
Lithuanian lt
Macedonian mk
Malay ms
Malayalam ml
Maltese mt
Marathi mr
Nepali ne
Norwegian no
Oriya or
Persian fa
Polish pl
Portuguese pt
Punjabi pa
Romanian ro
Russian ru
Scots_Gaelic gd
Serbian sr
Sinhalese si
Slovak sk
Slovenian sl
Spanish es
Swahili sw
Swedish sv
Syriac syr
Tagalog tl
Tamil ta
Telugu te
Thai th
Turkish tr
Ukrainian uk
Urdu ur
Vietnamese vi
Welsh cy
Yiddish yi

Sources

  1. Original CLD2 Repository
  2. Computation and Language
  3. Language identification at Wikipedia

We value your feedback. Feel free to open issues or contribute to the repository. Let’s make language detection in .NET even more powerful and versatile! 🌍📝

Happy coding! 👩‍💻👨‍💻


Stay updated by following our repository. For any inquiries or support, reach out through the issues page.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Panlingo.LanguageIdentification.CLD2.Native:

Package Downloads
Panlingo.LanguageIdentification.CLD2

This is a .NET wrapper for the Chrome Language Detection (CLD2) library by Google Inc. This package facilitates the integration of language identification capabilities into .NET applications, allowing for accurate and efficient recognition of over 80 languages with minimal effort. Perfect for applications dealing with multilingual texts or requiring automatic language detection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0 244 11/10/2024
0.1.1 353 10/22/2024
0.1.0 176 10/7/2024
0.0.0.22 171 9/22/2024
0.0.0.21 176 9/10/2024
0.0.0.20 144 9/8/2024
0.0.0.19 158 9/1/2024
0.0.0.18 125 8/26/2024
0.0.0.17 171 8/21/2024
0.0.0.16 167 8/9/2024
0.0.0.15 143 8/8/2024
0.0.0.14 110 8/3/2024
0.0.0.13 117 8/1/2024
0.0.0.12 130 7/20/2024
0.0.0.10 117 7/14/2024

- Initial release