#!/usr/bin/env python3

"""Human readable password generator.

---
see: https://github.com/Version2beta/passphrase
source: https://github.com/sapegin/dotfiles
"""

import random

NAMES_DICT = "/usr/share/dict/propernames"
DICT = "/usr/share/dict/words"

name = random.sample(list(open(NAMES_DICT)), 1)
words = random.sample(list(open(DICT)), 2)
phrase = name[0].rstrip().lower()

for word in words:
    phrase = phrase + word.rstrip().lower()
print(phrase)
