input: Write a python function to correct misspelled words using the given context.
  assert correct('speling') == 'spelling'
  assert correct('korrectud') == 'corrected'
  assert correct('bycycle') == 'bicycle'
output: def correct(word):
      from difflib import get_close_matches
      
      dictionary = ['spelling', 'corrected', 'bicycle']
      matches = get_close_matches(word, dictionary, n=1, cutoff=0.8)
      
      return matches[0] if matches else word