Get English translations of foreign word with Wiktionary
Project description
wiktionary_translate
Get English translations of foreign word with Wiktionary
Usage
You can only get the English definitions of foreign words
from wiktionary_translate.wiktionary_translate import WiktionaryResult
if __name__ == "__main__":
wr = WiktionaryResult()
if wr.query(word="essen", lang="de"):
print(wr.definitions) # ['to eat']
print(wr.partOfSpeech) # Verb
print(wr.definitionList[0].parsedExamples) # {'Er isst gern Schokolade.': 'He likes eating chocolate.', '...}
print(wr.definitionList[0].examples) # ['Er isst gern Schokolade.', 'Ich esse einen Apfel.']
print(wr.definitionList[0].definition) # to eat
print(wr.rawResult) # {'other': [{'partOfSpeech': 'Verb', 'language': 'Alemannic German', ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for wiktionary_translate-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea28fadbac87c5ac82b41ff83df9ad02d404cf2c55ffc70e602a9617f2391533 |
|
MD5 | d0de233d8cad4891f58ba2ea93142cd2 |
|
BLAKE2b-256 | e7f9bef8693244b65f60dd98559ce4825a54ad8d8c76f6b670504e6c3303fa5b |
Close
Hashes for wiktionary_translate-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6328e7d84fbbb3fb207be608d16983c1eea363cd0889aacbb617421798f1af99 |
|
MD5 | f67c9e1a0d3f96787c8fc853ae2d1ec0 |
|
BLAKE2b-256 | 92045989875dab4dfd578a88ce51d7aa8ad20690c8c064da0937ccac9bbb0a99 |