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.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08bebe0cf1c3d4d38b60e376ece576f35e6d453c35ed3631ffbe66c99d17190 |
|
MD5 | 68af620c9a78e327abda21ede64caec1 |
|
BLAKE2b-256 | 249a5d8c817b48b4e304d9d08451e3bab4b993fd3c5ec30ff9a1ebc8eb2663fc |
Close
Hashes for wiktionary_translate-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0aa760f6317ef9bc15f92e438abef449f186b23d13c3581681f5c84313d4de8 |
|
MD5 | aa5824111e5da8619932a5e4d7cc76ea |
|
BLAKE2b-256 | 2a2f659da0537f6fe3c61edcf0945333ae70390d4802f216878f8e4024815b7e |