def flatten_instructions(recipeInstructions, field='text', has_title=False):
    """RecipeInstructions is a list of jsons with recipe steps.
    Field is the name of the text field within recipeInstructions."""
    new_instructions = []
    for instruction in recipeInstructions:
        text = instruction[field]
        if has_title:
            text = instruction['title'] + ': ' + text
        new_instructions.append(text)
    return new_instructions