import json


def load_dict(d):
    """Function that loads json dictionaries"""

    with open(d,
              'r',
              encoding='utf-8') as in_f:  # load reference dict (based on training data) to settle disputes based on frequency
        dic = json.load(in_f)
    in_f.close()

    return dic