<commit_before># pphrase

Generate a 4-random-word passphrase (à la http://xkcd.com/936)
using the 10,000 most common English words as determined by
n-gram frequency analysis of Google's Trillion Word Corpus
([courtesy](https://github.com/first20hours/google-10000-english) of
[Josh Kaufman](http://first20hours.com/)).

This began as a morning-coffee project, just getting familiar with
git submodules and the github interface. It continued as a similar
exploration of [docopt](https://github.com/docopt/docopt) and other git
and Python features.

## Important!

This has **no expectation or intention** of being cryptographically
secure, or a good idea to actually use in generating passphrases that
demand security.

## Usage

It's easy:

    $ python pphrase.py
    correct horse battery staple

Or try

    $ python pphrase.py -h

for a list of options.

## Installation

If you're not familiar with git submodules, clone this repo, then:

    $ git submodule init
    $ git submodule update

## To do

  * Prevent possibility of word repetition in output
  * Allow specification of min and max passphrase length, irrespective
    of component word length spec<commit_msg>remove todo item for word repetition<commit_after># pphrase

Generate a random-word passphrase (à la http://xkcd.com/936) from
a subset of the 10,000 most common English words as determined
by n-gram frequency analysis of Google's Trillion Word Corpus
([courtesy](https://github.com/first20hours/google-10000-english) of
[Josh Kaufman](http://first20hours.com/)).

This began as a morning-coffee project, just getting familiar with
git submodules and the github interface. It continued as a similar
exploration of [docopt](https://github.com/docopt/docopt) and other git
and Python features.

## Important!

This has **no expectation or intention** of being cryptographically
secure, or a good idea to actually use in generating passphrases that
demand security.

## Usage

It's easy:

    $ python pphrase.py
    correct horse battery staple

Or try

    $ python pphrase.py -h

for a list of options.

## Installation

If you're not familiar with git submodules, clone this repo, then:

    $ git submodule init
    $ git submodule update

## To do

  * Allow specification of min and max passphrase length, irrespective
    of component word length
{'fraction_non_alphanumeric': 0.07302405498281787, 'fraction_numerical': 0.015034364261168385, 'mean_word_length': 4.118681318681318, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6285555', 'n_tokens_mistral': 704, 'n_tokens_neox': 633, 'n_words': 289}