CLI tool for Turkish etymological dictionary, nisanyansozluk.com (nis <word>)
Project description
CLI tool for Turkish etymological dictionary, nisanyansozluk.com.
Not: 0.3 sürümünden itibaren selenium yerine direkt nisanyan sözlüğün api endpoint'i decode* edilerek kullanılmaktadır.
Install
pip install nisanyan-cli
Usege
$ nis yakamoz
Etymology Tree (--tree
, -t
):
$ nis çikolata --tree
çikolata (Günümüz Türkçesi)
└── cioccolata (İtalyanca): kakao yağı ve şekerle imal edilen yiyecek maddesi.
└── chocolate (İspanyolca): ~.
└── xocolatl (Aztekçe): kakaodan yapılan içecek.
├── xocolli (Aztekçe): acı.
└── atl (Aztekçe): su.
Random Word (--random
, -r
):
$ nis -r -t
menekşe (Günümüz Türkçesi)
└── banafşe ‹بنفشه› (Farsça): aynı anlam.
└── vanavşag (Orta Farsça 1300—1500): aynı anlam.
└── *vana-vaxşa- (Avestaca MÖ.2000): orman otu.
└── vaxşaiti, vaxş- (Avestaca MÖ.2000): yetişmek, bitmek (bitki).
Adlar (-ad
):
$ nis gökçe -ad
Also you can use --random
, -r
argument with -ad
argument: nis -ad -r
Arguments
positional arguments:
<word>
options:
-h, --help show this help message and exit
-t, --tree show result as etymology tree
-r, --random selects a random word and brings the result
-p, --plain plain text output
-ad show result from nisanyanadlar
-v, --version show program's version number and exit
TODO
- Köken metninin sitedeki gibi görünmesi için Api'dan dönen sonucun işlenmesi.
- Ek açıklama metnindeki kısaltmaların normal hallerine çevrilmesi.
- Decode işlemini python koduna uyarlama.* (crypto-js/aes, crypto-js/enc-utf8)
Dependencies
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
nisanyan-cli-0.4.0.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for nisanyan_cli-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f56e3fcce8d3a256c90b2693c5316aecd5c0fc9225e2f243fc131dfc5f32c04 |
|
MD5 | e472d5aa99c4f24cb22de7054de5e664 |
|
BLAKE2b-256 | d7e628a0c05bbadaff9c7968e966d7503b6368af5c29c8fbfe9d4f6142ea9167 |