<commit_before># Ruby client for Zemanta

This GEM provides Ruby client and comand-line tool for Zemanta API.

## Requirements

To use this client you must gain API key. You can get API key
on http://developer.zemanta.com

## Installation

Add this line to your Gemfile
	
	gem 'zemanta'

Or install it as seperate gem

	$ gem install zemanta

## Using Zemanta in your application

You can you client from your Ruby code or from comand line.

### Configuration

Zemanta API requires API key, so to use this client you also have to set the key. You can do this like so...

	zemanta = Zemanta.new "API_KEY_GOES_HERE"

Or if you like class wide key...

	Zemanta.api_key = "API_KEY_GOES_HERE"

The 3rd option is to set enviroment variable "ZEMANTA_KEY" and client will pick it up.

### Suggests

Zemanta API provides 3 methods; and so does this client.<commit_msg>Shorting documentation.<commit_after># Ruby client for Zemanta

This GEM provides Ruby client and comand-line tool for Zemanta API.

## Requirements

To use this client you must gain API key. You can get API key
on http://developer.zemanta.com

## Installation

Add this line to your Gemfile
	
	gem 'zemanta'

Or install it as seperate gem

	$ gem install zemanta

## Using Zemanta in your application

You can use client from your Ruby code or from comand-line.

### Configuration

Zemanta API requires API key, so to use this client you also have to set the key. You can do this like so...

	zemanta = Zemanta.new "API_KEY_GOES_HERE"

Or if you like class wide key...

	Zemanta.api_key = "API_KEY_GOES_HERE"

The 3rd option is to set enviroment variable "ZEMANTA_KEY" and client will pick it up.

### Suggests

Zemanta API provides 3 methods; and so does this client.
{'fraction_non_alphanumeric': 0.05787037037037037, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 3.789473684210526, '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': '6827592', 'n_tokens_mistral': 551, 'n_tokens_neox': 544, 'n_words': 259}