def check_word_at(p, ind, tok=None, dep=None, up_tok=None, up_dep=None,
    precede=None):
    """
    Returns an indicator and a marker
    If parameters match word at index:
        returns 1, [tok at ind, ind]
    Else:
        returns 0, []
    """
    if len(p) <= ind:
        return 0, []
    if tok != None and p[ind]['tok'].lower() not in tok:
        return 0, []
    if dep != None and p[ind]['dep'] not in dep:
        return 0, []
    if up_tok != None and ('up' not in p[ind] or p[p[ind]['up']]['tok'].
        lower() not in up_tok):
        return 0, []
    if up_dep != None and p[p[ind]['up']]['dep'] not in up_dep:
        return 0, []
    if precede != None and (len(p) <= ind + 1 or p[ind + 1]['tok'] not in
        precede):
        return 0, []
    return 1, [[(p[ind]['tok'], ind)]]
