text: # -*- coding: utf-8 -*-
  #
  # formatting.py: methods to normalize and standardize the formats of the different
  # line components of the interlinear glosses
  
  
  def cleanUpInterlinears(string):
     string = removeWhitespace(string)
     string = string.replace("-","–")
     return string
  
  def removeWhitespace(string):
      string = string.replace(" ","")
      return string
  
  def manageQuotes(string):
     if string[0] == "‘":
           string = string[1:]
     if string[-1] == "’":
           string = string[:-1]
     string = "‘" + string.strip() + "’"
     return string
  
  def correctCapitalization(string):
     exceptions  = ["A","S","O","P"]
     if string in exceptions:
        return string
     newString = string.lower()
     return newString
     
  