<commit_before># TypografClient

A Ruby gem to get [Typograf webservice](https://www.artlebedev.ru/typograf/webservice/) functionality on your text.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'typograf_client', :git => "git://github.com/pandalowry/typograf_client.git"
```

And then execute:

    $ bundle

<!-- Or install it yourself as:

    $ gem install typograf_client -->

## Usage

```ruby
text = '<NAME> из Юты, постившийся в пустыне, возможно, и не нашел бы священные документы, если бы не паломник с препоясанными чреслами.'

puts RemoteTypograf::Request.new(text).result
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pandalowry/typograf_client.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
<commit_msg>add example result<commit_after># TypografClient

A Ruby gem to get [Typograf webservice](https://www.artlebedev.ru/typograf/webservice/) functionality on your text.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'typograf_client', :git => "git://github.com/pandalowry/typograf_client.git"
```

And then execute:

    $ bundle

<!-- Or install it yourself as:

    $ gem install typograf_client -->

## Usage

```ruby
text = '<NAME> из Юты, постившийся в пустыне, возможно, и не нашел бы священные документы, если бы не паломник с препоясанными чреслами.'

puts RemoteTypograf::Request.new(text).result #=> "<p><NAME> из&nbsp;Юты, постившийся в&nbsp;пустыне, возможно, и&nbsp;не&nbsp;нашел&nbsp;бы священные документы, если&nbsp;бы не&nbsp;паломник с&nbsp;препоясанными чреслами.<br />\n</p>" 
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pandalowry/typograf_client.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

{'fraction_non_alphanumeric': 0.12076053442959918, 'fraction_numerical': 0.0, 'mean_word_length': 4.726470588235294, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1804176', 'n_tokens_mistral': 672, 'n_tokens_neox': 694, 'n_words': 195}