<commit_before>= alchemy-news-api

This is a Ruby SDK for the IBM Alchemy News API.  IT is fairly simple at the moment, as it is just in its infancy.

== Installation
    gem 'alchemy-news-sdk', 
       :git=>'https://github.com/propellerhead-interactive/alchemy-news-sdk'

== Supported Ruby Versions
This library aims to support and is [tested against][travis] the following Ruby
implementations:

* Ruby 2

== Use

    api = AlchemyNews::Api.new(key)
    search = api.search("Trudeau")
    search.each do |news_item|
      puts news_item.name
    end
<commit_msg>readme updates<commit_after>= alchemy-news-api

This is a Ruby SDK for the IBM Alchemy News API.  IT is fairly simple at the moment, as it is just in its infancy.

== Supported Ruby Versions
This library aims to support and is [tested against][travis] the following Ruby
implementations:

* Ruby 2

== Installation
    gem 'alchemy-news-sdk', 
       :git=>'https://github.com/propellerhead-interactive/alchemy-news-sdk'



== Use

    api = AlchemyNews::Api.new(key)
    search = api.search("Trudeau")
    search.each do |news_item|
      puts news_item.name
    end

{'fraction_non_alphanumeric': 0.09885260370697264, 'fraction_numerical': 0.00176522506619594, 'mean_word_length': 3.4645669291338583, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1138324', 'n_tokens_mistral': 381, 'n_tokens_neox': 358, 'n_words': 121}