<commit_before># Allmusic 0.1

Get genre and style information from [allmusic.com](http://www.allmusic.com)

## Installation

    gem install rjl-allmusic

## Usage

    spicy = Allmusic.new "Spice Girls", "Spiceworld"
    spicy.get_meta
    puts spicy.genre # => "Pop/Rock"
    puts spicy.style # => "Adult Contemporary"

## How it works

`Allmusicgenre` is a webscraper. It uses fuzzy string matching to improve flexibility and match.

Given an `(artist)` and an `(album)`, it:

1. Loads `http://www.allmusic.com/search/artists/(artist)`
2. Finds the (best artist match) between (artist) and the artists listed<commit_msg>Improve documentation<commit_after># Allmusic 0.1

Get genre and style information from [allmusic.com](http://www.allmusic.com)

## Installation

    gem install rjl-allmusic

## Usage

    require 'allmusic'

    spicy = Allmusic.new "Spice Girls", "Spiceworld"
    spicy.get_meta
    puts spicy.genre # => "Pop/Rock"
    puts spicy.style # => "Adult Contemporary"

## How it works

`Allmusicgenre` is a webscraper. It uses fuzzy string matching to improve flexibility and match.

Given an `(artist)` and an `(album)`, it:

1. Loads `http://www.allmusic.com/search/artists/(artist)`
2. Finds the (best artist match) between (artist) and the artists listed
{'fraction_non_alphanumeric': 0.11875, 'fraction_numerical': 0.00625, 'mean_word_length': 3.9080459770114944, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2904246', 'n_tokens_mistral': 463, 'n_tokens_neox': 425, 'n_words': 136}