import re


def find_position(data, word):
  """
  the function finds all occurrences of a word in a text ignoring case
  """
  try:
    return [i.span() for i in re.finditer(r"\b{}\b".format(word), data, flags=re.IGNORECASE)]
  except:
    return [(0, 0)]