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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6ffd6f2a73f122434962172238e0ce26bfc9a1cbaeac66e9d125adbac0eba5 |
|
MD5 | b75439c6ef0516f06095b8d73f5eab03 |
|
BLAKE2b-256 | e36addba80ffe3e556ab8a0e00d00738fcd529fb7fe42fa2ee4a472abcab3a7d |