<commit_before># wordcloud2.js

Create a tag cloud/[Wordle](http://www.wordle.net/) presentation on a HTML5 canvas element.

This library is a spin-off project from [HTML5 Word Cloud](https://github.com/timdream/wordcloud).

## Simple usage

Load `wordcloud.js` script to the web page, and run:

    WordCloud(document.getElementById('my_canvas'), { wordList: list } );

where `list` is an array that look like this: `[['foo', 12], ['bar', 6]]`.

Options available, see the source code for information for now.

## Algorithm
<commit_msg>Add some links to README.md, and correction<commit_after># [wordcloud2.js](http://timdream.org/wordcloud2.js/)

Create a tag cloud/[Wordle](http://www.wordle.net/) presentation on a HTML5 canvas element.

This library is a spin-off project from [HTML5 Word Cloud](https://github.com/timdream/wordcloud).

## Simple usage

Load `wordcloud.js` script to the web page, and run:

    WordCloud(document.getElementById('my_canvas'), { list: list } );

where `list` is an array that look like this: `[['foo', 12], ['bar', 6]]`.

Options available, see [API documentation](./API.md) for detail.

## Algorithm

{'fraction_non_alphanumeric': 0.14223002633889376, 'fraction_numerical': 0.01141352063213345, 'mean_word_length': 4.533980582524272, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7260900', 'n_tokens_mistral': 362, 'n_tokens_neox': 346, 'n_words': 123}