import re


def add_item_offset(token, sentence):
    """Get the start and end offset of a token in a sentence"""
    s_pattern = re.compile(re.escape(token), re.I)
    token_offset_list = []
    for m in s_pattern.finditer(sentence):
        token_offset_list.append((m.group(), m.start(), m.end()))
    return token_offset_list