Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

![screenshot](https://github.com/agmmnn/nisanyan-cli/assets/16024979/c19b628b-c0c3-4ca9-aef2-4172bbc53a7d)



GitHub release (latest by date)


PyPI


Total Downloads

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/)