import os
import json

root = os.path.dirname(__file__)
literal_file = os.path.join(root, 'literals.json')

with open(literal_file) as f:
    literals = json.load(f)


def get_literals(literal_type):
    """Where `literal_type` is one of 'keywords', 'functions', 'show',
    'change_items' returns a tuple of literal values of that type"""

    return tuple(literals[literal_type])
