<commit_before># YandexTranslateCSharpSdk

![alt Appveyor status](https://ci.appveyor.com/api/projects/status/t069512wi8cywvjl/branch/master?svg=true)

YandexTranslateCSharpSdk is a .NET C# library providing access for Yandex Translate API:

https://tech.yandex.com/translate

Project includes C# library with wrapper methods for Yandex Translate API, Visual Studio unit tests for this library and WPF demo application for library. Project also includes .NET Core library, test for it and ASP.NET Core demo application.

## How to use

    YandexTranslateSdk wrapper = new YandexTranslateSdk();
    wrapper.ApiKey = "theKeyYouGotFromYandexHere";
    string englishText = "Hello, World";
    string translatedText = await wrapper.TranslateText(englishText, "en-fr");

## Prerequisites
Requires .NET Framework 4.0 or higher or .NET Core. The library is based on HttpClient. To use it in .NET 4.0, use Nuget package https://www.nuget.org/packages/Microsoft.Net.Http, versions of .NET Framework 4.5 or higher and .NET Core have HttpClient by default.<commit_msg>added link to Nuget<commit_after># YandexTranslateCSharpSdk

![alt Appveyor status](https://ci.appveyor.com/api/projects/status/t069512wi8cywvjl/branch/master?svg=true)

YandexTranslateCSharpSdk is a .NET C# library providing access for Yandex Translate API:

https://tech.yandex.com/translate

Project includes C# library with wrapper methods for Yandex Translate API, Visual Studio unit tests for this library and WPF demo application for library. Project also includes .NET Core library, test for it and ASP.NET Core demo application.

## Nuget

You can add .NET Framework library to your project using Nuget:

https://www.nuget.org/packages/YandexTranslateCSharpSdk

## How to use

    YandexTranslateSdk wrapper = new YandexTranslateSdk();
    wrapper.ApiKey = "theKeyYouGotFromYandexHere";
    string englishText = "Hello, World";
    string translatedText = await wrapper.TranslateText(englishText, "en-fr");

## Prerequisites
Requires .NET Framework 4.0 or higher or .NET Core. The library is based on HttpClient. To use it in .NET 4.0, use Nuget package https://www.nuget.org/packages/Microsoft.Net.Http, versions of .NET Framework 4.5 or higher and .NET Core have HttpClient by default.
{'fraction_non_alphanumeric': 0.08207630878438332, 'fraction_numerical': 0.011535048802129548, 'mean_word_length': 4.694444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '545080', 'n_tokens_mistral': 707, 'n_tokens_neox': 670, 'n_words': 243}