input: Write a python function to correct misspelled words in a given text using the Enchant library.
  assert check_spelling('Ths is a languige exersice') == 'This is a language exercise'
  assert check_spelling('Heeello wrld') == 'Hello world'
  assert check_spelling('Pythn is a grreat lnguage') == 'Python is a great language'
output: def check_spelling(text):
      import enchant
      d = enchant.Dict("en_US")
  
      def correct_word(word):
          if d.check(word):
              return word
          suggestions = d.suggest(word)
          return suggestions[0] if suggestions else word
  
      corrected_words = [correct_word(word) for word in text.split()]
      return ' '.join(corrected_words)