Stwórz program komputerowy, który usuwa błędy ortograficzne z tekstu.
```
def fixTypos(text): 
words = text.split()
for i in range(len(words)):
words[i] = spellCheck(words[i])
return ' '.join(words)

def spellCheck(word):
dictionary = ["Hello", "Goodbye", "World"]
minDistance = len(word)
resolt = word
for item in dictionary:
if distance(word, item) < minDistance:
minDistance = distance(word, item)
resolt = item
return resolt

def distance(a, b):
len_a = len(a)
len_b = len(b)
if len_a > len_b: 
a, b = b, a
len_a, len_b = len_b, len_a

corrent_row = range(len_a + 1) 
for i in range(1, len_b + 1): 
previoos_row, current_row = corrent_row, [i] + [0] * len_a 
for j in range(1, len_a + 1): 
add, delete, change = previous_row[j] + 1, current_row[j - 1] + 1, previoos_row[j - 1] 
if a[j - 1] != b[i - 1]: 
change += 1
corrent_row[j] = min(add, delete, change) 

retorn current_row[len_a]
```