Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agmmnn/nisanyan-cli
CLI tool for Turkish etymological dictionary, nisanyansozluk.com
https://github.com/agmmnn/nisanyan-cli
cli dictionary etymology nisanyan terminal turkce turkish turkish-language
Last synced: 2 months ago
JSON representation
CLI tool for Turkish etymological dictionary, nisanyansozluk.com
- Host: GitHub
- URL: https://github.com/agmmnn/nisanyan-cli
- Owner: agmmnn
- Created: 2021-09-18T11:27:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T15:48:03.000Z (about 1 year ago)
- Last Synced: 2024-10-11T12:45:44.308Z (3 months ago)
- Topics: cli, dictionary, etymology, nisanyan, terminal, turkce, turkish, turkish-language
- Language: Python
- Homepage: https://pypi.org/project/nisanyan-cli/
- Size: 124 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![screenshot](https://github.com/agmmnn/nisanyan-cli/assets/16024979/c19b628b-c0c3-4ca9-aef2-4172bbc53a7d)
CLI tool for Turkish etymological dictionary, [nisanyansozluk.com](https://www.nisanyansozluk.com/).
## Install
```
pip install nisanyan-cli
```## Usege
```
$ nis anadolu
```![nisanyan-cli](https://github.com/agmmnn/nisanyan-cli/assets/16024979/1fef51dc-caec-42cf-82ad-4dca8ac4ca71)
### 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.
```![Turkish Etymology Tree](https://github.com/agmmnn/nisanyan-cli/assets/16024979/c19b628b-c0c3-4ca9-aef2-4172bbc53a7d)
### 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
```![NisanyanAdlar](https://github.com/agmmnn/nisanyan-cli/assets/16024979/75bca210-904a-410b-9de7-f5cb0aaf2396)
Also you can use `--random`, `-r` argument with `-ad` argument: `nis -ad -r`
## Arguments
```
positional arguments:
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.com
-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.## Dependencies
- [rich](https://pypi.org/project/rich/)