<commit_before># Fantasy Name Generator

Three implementations -- JavaScript, Elisp, and Perl -- of the
[name generator described at RinkWorks](http://rinkworks.com/namegen/).
The JavaScript implementation is by far the most mature.

## JavaScript

The JavaScript version uses an optimizing template-compiler to create
an efficient generator object.

```javascript
var generator = NameGen.compile("sV'i");
generator.toString();  // => "entheu'loaf"
generator.toString();  // => "honi'munch"
```<commit_msg>Updated docs (with c++ example)<commit_after># Fantasy Name Generator

Three implementations -- JavaScript, Elisp, and Perl -- of the
[name generator described at RinkWorks](http://rinkworks.com/namegen/).
The JavaScript implementation is by far the most mature.

## JavaScript

The JavaScript version uses an optimizing template-compiler to create
an efficient generator object.

```javascript
var generator = NameGen.compile("sV'i");
generator.toString();  // => "entheu'loaf"
generator.toString();  // => "honi'munch"
```

## C++

The C++ version also uses a template-compiler (based on the one for JavaScript)
to create an efficient generator object. It requires C++11.

```c++
NameGen::Generator generator("sV'i");
generator.toString();  // => "drai'sneeze"
generator.toString();  // => "ardou'bumble"
```
{'fraction_non_alphanumeric': 0.13601823708206687, 'fraction_numerical': 0.001519756838905775, 'mean_word_length': 5.013698630136986, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, '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': '3154528', 'n_tokens_mistral': 385, 'n_tokens_neox': 362, 'n_words': 130}