<commit_before># Unbabel API Wrapper


# Configuration

```ruby

client = Unbabel::Client.new do |conf|
  conf.username = ENV['UNBABEL_USERNAME']
  conf.token    = ENV['UNBABEL_TOKEN']
end

```<commit_msg>Adds expected methods in README<commit_after># Unbabel API Wrapper


# Configuration

```ruby

client = Unbabel::Client.new do |conf|
  conf.username = ENV['UNBABEL_USERNAME']
  conf.token    = ENV['UNBABEL_TOKEN']
end

```

# Usage

### Request Topics

```ruby

client.topics

```


# Methods available

```ruby
client.topics
client.tones
client.language_pairs
client.translations           # lists listranstions
client.translations.find(uid) # queries a translation
client.translations.new()     # request new translation
```
{'fraction_non_alphanumeric': 0.12431693989071038, 'fraction_numerical': 0.0, 'mean_word_length': 4.470149253731344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7069149', 'n_tokens_mistral': 268, 'n_tokens_neox': 248, 'n_words': 56}