code: def demutate(word: str, is_hpref: bool = False) -> str:
      UVOWELS = "AÁEÉIÍOÓUÚ"
      LVOWELS = "aáeéiíoóuú"
      lc = word.lower()
      # remove eclipsis
      if lc.startswith("bhf"):
          word = word[2:]
      elif lc.startswith("mb"):
          word = word[1:]
      elif lc.startswith("gc"):
          word = word[1:]
      elif lc.startswith("nd"):
          word = word[1:]
      elif lc.startswith("ng"):
          word = word[1:]
      elif lc.startswith("bp"):
          word = word[1:]
      elif lc.startswith("dt"):
          word = word[1:]
      elif word[0:1] == "n" and word[1:2] in UVOWELS:
          word = word[1:]
      elif lc.startswith("n-") and word[2:3] in LVOWELS:
          word = word[2:]
      # non-standard eclipsis
      elif lc.startswith("bh-f"):
          word = word[3:]
      elif lc.startswith("m-b"):
          word = word[2:]
      elif lc.startswith("g-c"):
          word = word[2:]
      elif lc.startswith("n-d"):
          word = word[2:]
      elif lc.startswith("n-g"):
          word = word[2:]
      elif lc.startswith("b-p"):
          word = word[2:]
      elif lc.startswith("d-t"):
          word = word[2:]
  
      # t-prothesis
      elif lc.startswith("ts"):
          word = word[1:]
      elif lc.startswith("t-s"):
          word = word[2:]
  
      # h-prothesis, if known to be present
      elif is_hpref and word[0:1] == "h":
          word = word[1:]
      # h-prothesis, simple case
      # words can also begin with 'h', but unlike eclipsis,
      # a hyphen is not used, so that needs to be handled
      # elsewhere
      elif word[0:1] == "h" and word[1:2] in UVOWELS:
          word = word[1:]
  
      # lenition
      # this breaks the previous if, to handle super-non-standard
      # text where both eclipsis and lenition were used.
      if lc[0:1] in "bcdfgmpst" and lc[1:2] == "h":
          word = word[0:1] + word[2:]
  
      return word
  
file_path: spacy/spacy/lang/ga/lemmatizer.py
imports: from typing import Dict, List, Tuple
  from ...pipeline import Lemmatizer
  from ...tokens import Token
label_desc: Use image node_id 1 for calling a global function with example usage: demutate(word, is_hpref) and returns: word