import json
import random


def get_beginning(type="noun"):
    """_Returns a randomly chosen start of a simple line from the json file_
    
    Acceptible values for 'type' include noun, verb, and adjective.
    
    Defaults to noun content only.

    Returns:
        _str_: _a simple line start string_
    """
    with open(r'content\simple_line_start.json') as source:
        begin_chunk = json.load(source)
    beginnings = begin_chunk[type]
    chosen = random.randint(0, (len(beginnings) - 1))
    beginning = beginnings[chosen]
    return beginning