All Russian words
From where can I get all the words in Russian? You need it for your own t9 on a PC. (preferably all words with an array)
1
2 answers
Exclusively in addition to @timur's response. I do not know how likely it is that those dictionaries, the links to which he gave are replenished (but suddenly). A couple of lines of code. We take the files from the links and save them in utf-8
:
import requests
response = requests.get('https://raw.githubusercontent.com/danakt/russian-words/master/russian.txt')
text = response.content.decode('cp1251')
with open('russian.txt', 'wb') as ru:
ru.write(text.encode('utf-8'))
response = requests.get('https://raw.githubusercontent.com/danakt/russian-words/master/russian_surnames.txt')
text = response.content.decode('cp1251')
with open('russian_surnames.txt', 'wb') as ru:
ru.write(text.encode('utf-8'))
2
Author: Namerek, 2020-07-25 05:35:58