import json
import random


def get_substitutions(subs_json):
    """Randomly pull phrase variations from the substitutions file."""
    with open(subs_json) as subs_file:
        raw_subs = json.loads(subs_file.read())
    return { k : random.choice(raw_subs[k]) for k in raw_subs }