<commit_before># Dynastia

[![NPM](https://nodei.co/npm/dynastia.png?downloads=true&stars=true)](https://nodei.co/npm/dynastia/)

[![Build Status](https://travis-ci.org/opendnd/dynastia.svg?branch=master)](https://travis-ci.org/opendnd/dynastia)

[![Join the chat at https://gitter.im/opendnd/dynastia](https://badges.gitter.im/opendnd/dynastia.svg)](https://gitter.im/opendnd/dynastia?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This is a tool for D&D DM's to generate dynasties quickly when making a kingdom's history.

![demo](doc/demo.gif)

## Installation

You will need [node](https://nodejs.org/en/) and [npm](https://www.npmjs.com/) installed. Then do:

`npm install -g dynastia`

## Loading saved files

Once you have saved a file you can load it again.

`dynastia -i my-file.dyn`

## Changing the output directory

You can specify a specific output directory, otherwise it will save to `pwd`.

`dynastia -o my/output/dir`<commit_msg>Align badges side by side<commit_after># Dynastia

[![NPM](https://nodei.co/npm/dynastia.png?downloads=true&stars=true)](https://nodei.co/npm/dynastia/) 

[![Build Status](https://travis-ci.org/opendnd/dynastia.svg?branch=master)](https://travis-ci.org/opendnd/dynastia) [![Join the chat at https://gitter.im/opendnd/dynastia](https://badges.gitter.im/opendnd/dynastia.svg)](https://gitter.im/opendnd/dynastia?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This is a tool for D&D DM's to generate dynasties quickly when making a kingdom's history.

![demo](doc/demo.gif)

## Installation

You will need [node](https://nodejs.org/en/) and [npm](https://www.npmjs.com/) installed. Then do:

`npm install -g dynastia`

## Loading saved files

Once you have saved a file you can load it again.

`dynastia -i my-file.dyn`

## Changing the output directory

You can specify a specific output directory, otherwise it will save to `pwd`.

`dynastia -o my/output/dir`
{'fraction_non_alphanumeric': 0.15494393476044852, 'fraction_numerical': 0.0, 'mean_word_length': 5.04, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3447127', 'n_tokens_mistral': 747, 'n_tokens_neox': 717, 'n_words': 159}