<commit_before># Bot Translator

This project helps you integrate Microsoft Bing Translator in to your C# Bot Builder projects. 

You write your bot in your language of choice, and leave the translation heavy lifting to Bing Translator. The translator bolts on around your code, with only a couple of small, non-intrusive changes. 

It works by intercepting and wrapping internal [Bot Builder](https://dev.botframework.com/) objects and intercepting certain calls to perform translation before being handed off to the base framework. 

#### Examples

For another more in-depth example, see [this project](https://github.com/jakkaj/SimpleBot).

#### Install the Nuget 

```
Install-Package SimpleBotTranslator
```

You will have to add the service reference to you *web.config* file manually. 

```xml
<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_LanguageService" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://api.microsofttranslator.com/V2/soap.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
          contract="MicrosoftTranslator.LanguageService" name="BasicHttpBinding_LanguageService" />
    </client><commit_msg>Added gif demo<commit_after># Bot Translator

This project helps you integrate Microsoft Bing Translator in to your C# Bot Builder projects. 

You write your bot in your language of choice, and leave the translation heavy lifting to Bing Translator. The translator bolts on around your code, with only a couple of small, non-intrusive changes. 

It works by intercepting and wrapping internal [Bot Builder](https://dev.botframework.com/) objects and intercepting certain calls to perform translation before being handed off to the base framework. 

#### Examples

For another more in-depth example, see [this project](https://github.com/jakkaj/SimpleBot).

<img src="https://cloud.githubusercontent.com/assets/5225782/23356060/9cc8d094-fd2c-11e6-9792-0f116d1b1d41.gif" width="800px"/>

#### Install the Nuget 

```
Install-Package SimpleBotTranslator
```

You will have to add the service reference to you *web.config* file manually. 

```xml
<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_LanguageService" />
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://api.microsofttranslator.com/V2/soap.svc"
          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_LanguageService"
          contract="MicrosoftTranslator.LanguageService" name="BasicHttpBinding_LanguageService" />
    </client>
{'fraction_non_alphanumeric': 0.09032983508245877, 'fraction_numerical': 0.015367316341829085, 'mean_word_length': 4.458077709611452, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2418042', 'n_tokens_mistral': 752, 'n_tokens_neox': 695, 'n_words': 242}