mirror of
https://github.com/magnum-opus-tender-hack/backend.git
synced 2024-11-24 10:13:44 +03:00
11 lines
226 B
Python
11 lines
226 B
Python
import requests as r
|
|
from spellchecker import SpellChecker
|
|
|
|
speller = SpellChecker(language='ru')
|
|
|
|
def spell_check(word: str) -> str:
|
|
res = speller.correction(word)
|
|
if not len(res):
|
|
return word
|
|
return res
|