import ast


def get_scope(series):
    """Get a string of all the words in scope. """
    idx = ast.literal_eval(series["scopes_idx"])
    scope = " ".join([s for i, s in zip(idx, series["sent"].split(" ")) if i])
    return scope