docstr: Convert numbers / number-like quantities in a string to their spelt-out counterparts
docstr_tok: ["Convert","numbers","\/","number-like","quantities","in","a","string","to","their","spelt-out","counterparts"]
code: def __call__(self, text):
      """
      Convert numbers / number-like quantities in a string to their spelt-out counterparts
      """
      # Form part of the pattern for all currency symbols
      pattern = r"(?<!\w)(-?\$?\€?\£?\¢?\¥?\₹?\₽?\฿?\₺?\₴?\₣?\₡?\₱?\₪?\₮?\₩?\₦?\₫?\﷼?\d+(?:\.\d{1,2})?%?)(?!\w)"
  
      # Find and replace commas in numbers (15,000 -> 15000, etc)
      text = re.sub(
          r"(\d+,\d+)",
          lambda match: match.group(1).replace(",", ""),
          text,
      )
  
      # Use regex to find and replace numbers in the text
      converted_text = re.sub(
          pattern, lambda match: self.convert(match.group(1)), text
      )
      converted_text = re.sub(" +", " ", converted_text)
  
      return converted_text
  
imports: import re
label_desc: Use image node_id 4 for calling the EnglishNumberNormalizer obj's underlying member method code with example usage: obj.__call__(text) and returns: converted_text