A simple command-line tool for searching Wiktionary.
Project description
Search Wiktionary
A simple command-line tool for searching English Wiktionary using Wiktionary Parser (click).
Wiktionary definitions are licensed under CC BY-SA 4.0. Visit wiktionary at wiktionary.org (click).
Installation
To install, type:
pip install search_wikt
To run the program, type:
py -m search_wikt apricot --language English
or any other word or language you'd like to search. Run py -m search_wikt -h
or --help
for a more detailed explanation.
Alternatively, to clone the repository type:
git clone https://github.com/lauramvx/search_wikt
then cd
to the project directory and run:
py src\search_wikt\core.py apricot --language English
Examples
py src\search_wikt\core.py hunig -l "Old English"
hunig
From Proto-West Germanic *hunag, from Proto-Germanic *hunagą. Cognate with Old Frisian hunig, Old Saxon honeg, and Old High German honag; also Old Norse hunang, from the alternative form *hunangą.
IPA: /ˈxu.nij/, [ˈhu.nij]
noun
huniġ n
honey
py src\search_wikt\core.py ac -l "Old English" -ex -r
ac 1
From Proto-Germanic *aiks.
IPA: /ɑːk/
IPA: /ɑk/
noun
āc f
oak (wood or tree)
(poetic) an oaken ship
(masculine) the runic character ᚪ (/a/)
ac 2
From Proto-Germanic *ak.
IPA: /ɑːk/
IPA: /ɑk/
conjunction
ac
but
but instead: in this sense ac should sometimes be translated as "but," but most often it is best left untranslated
Sēo æx forġiett, ac þæt trēow ġeman.The axe forgets, but the tree remembers.
The axe forgets, but the tree remembers.
Ne ġēotaþ wē tēaras, ac blōd.We don't shed tears, we shed blood.
We don't shed tears, we shed blood.
Nōn egō, sed tū: “Nā iċ, ac þū.” Nōn bōs est, sed equus: “Nis hit nā oxa, ac is hors.”Non ego, sed tu: “Not me, you.” Non bos est, sed equus: “It's not an ox, it's a horse.”
Non ego, sed tu: “Not me, you.” Non bos est, sed equus: “It's not an ox, it's a horse.”
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
search_wikt-0.0.4.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file search_wikt-0.0.4.tar.gz
.
File metadata
- Download URL: search_wikt-0.0.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa794dadbcb2c1804ea2ae24ddc1b08c0d4abfd4c39b51a7c2f7625aebeffc8c |
|
MD5 | c5aa68313c6b3368e3d879ac2f7fc339 |
|
BLAKE2b-256 | c39c17f4ff3c21e76c028e086fd2a3391e20a70f969cd1dca514b36640d0a6fe |
File details
Details for the file search_wikt-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: search_wikt-0.0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e81dde98189af7e56d4e9091c30f70f47006da142733ccee6f825a4581c5253 |
|
MD5 | cebb2036ab14fd38563a10032c9f8969 |
|
BLAKE2b-256 | 61670a2f1fefb1e39ea63e50f696b4dd54079b85836f813b42e17c7604c3dff4 |