<commit_before># wizipsum

We all have funny mates, right?

* [Introduction](https://github.com/wizbii/wizipsum#introduction)
* [DIY](https://github.com/wizbii/wizipsum#diy)
* [Installation](https://github.com/wizbii/wizipsum#installation)
* [API](https://github.com/wizbii/wizipsum#api)

## Introduction

Surely, [Khaled](http://khaledipsum.com/) has some cool slangs but we all have funny friends so why couldn't we build our own lorem ipsum?
That's what wizipsum is: a lorem ipsum generator builder.
It's dead simple, tested and easy to get started.

## DIY

If you want to build your own lorem ipsum without worrying about hosting while being able to use it everywhere thanks to the *chrome extension*, heads to the [GitHub Page](https://wizbii.github.io/wizipsum) ;).

## Installation

1. Get it via:
  * `npm install wizipsum`
  * [direct download](https://raw.githubusercontent.com/wizbii/wizipsum/master/dist/wizipsum.js)

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Fill this array', 'with any slangs', 'you want'])

console.log(generator())
```

## API

`wizipsum` is a function that accepts four arguments:

1. **data** (required): A list of strings
2. **paragraphs** (default: `1`): The number of paragraphs to generate
3. **wrappers** (default: `['', '\n']`): An array of two items, the first one will be added to the start of each paragraph while the other one will be added to the end. That's pretty useful if you want to create `<p></p>` elements.
4. **maxlength** (default: `400`): A paragrah's maxlength

It returns a function that generates random compositions from the list of string.

Examples:

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Foo', 'Bar'], 2, ['<p>', '</p>'], 10)

generator()
// '<p>Bar Foo Bar</p><p>Bar Bar Foo</p>'
```

Apart from the data, you can pass the rest of the arguments to the generator to overwrite the defaults:

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Baz', 'Quz'], 2, ['<p>', '</p>'], 10)

generator(4, ['', '<br>'], 4)
// 'Quz Baz<br>Baz Baz<br>Baz Quz<br>Quz Quz<br>'
```

## TODO

* [ ] GitHub Page
* [ ] Chrome Extension
<commit_msg>add link to demo page<commit_after># wizipsum

We all have funny mates, right?

* [Demo](https://wizbii.github.io/wizipsum)
* [Introduction](https://github.com/wizbii/wizipsum#introduction)
* [DIY](https://github.com/wizbii/wizipsum#diy)
* [Installation](https://github.com/wizbii/wizipsum#installation)
* [API](https://github.com/wizbii/wizipsum#api)

## Introduction

Surely, [Khaled](http://khaledipsum.com/) has some cool slangs but we all have funny friends so why couldn't we build our own lorem ipsum?
That's what wizipsum is: a lorem ipsum generator builder.
It's dead simple, tested and easy to get started.

## DIY

If you want to build your own lorem ipsum without worrying about hosting while being able to use it everywhere thanks to the *chrome extension*, heads to the [GitHub Page](https://wizbii.github.io/wizipsum) ;).

## Installation

1. Get it via:
  * `npm install wizipsum`
  * [direct download](https://raw.githubusercontent.com/wizbii/wizipsum/master/dist/wizipsum.js)

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Fill this array', 'with any slangs', 'you want'])

console.log(generator())
```

## API

`wizipsum` is a function that accepts four arguments:

1. **data** (required): A list of strings
2. **paragraphs** (default: `1`): The number of paragraphs to generate
3. **wrappers** (default: `['', '\n']`): An array of two items, the first one will be added to the start of each paragraph while the other one will be added to the end. That's pretty useful if you want to create `<p></p>` elements.
4. **maxlength** (default: `400`): A paragrah's maxlength

It returns a function that generates random compositions from the list of string.

Examples:

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Foo', 'Bar'], 2, ['<p>', '</p>'], 10)

generator()
// '<p>Bar Foo Bar</p><p>Bar Bar Foo</p>'
```

Apart from the data, you can pass the rest of the arguments to the generator to overwrite the defaults:

```javascript
const wizipsum = require('wizipsum')
const generator = wizipsum(['Baz', 'Quz'], 2, ['<p>', '</p>'], 10)

generator(4, ['', '<br>'], 4)
// 'Quz Baz<br>Baz Baz<br>Baz Quz<br>Quz Quz<br>'
```

## TODO

* [ ] GitHub Page
* [ ] Chrome Extension

{'fraction_non_alphanumeric': 0.15282764811490127, 'fraction_numerical': 0.00763016157989228, 'mean_word_length': 4.8337696335078535, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 13, 'lorem ipsum': 6, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4275295', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1497, 'n_words': 521}