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
Close
Hashes for wiktionary_translate-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2202574b9e55a80014da7746eb591635816d6fd45f24812b4dde4e92417e7d90 |
|
MD5 | 8e8597d73696e1aa6f99fb932207fd63 |
|
BLAKE2b-256 | 42a916abd5424a84d04ebf267f1180b179e451ef64e291bb8a4c9fc2cc7578cd |