Giter Site home page Giter Site logo

agmmnn / syn Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 6.0 147 KB

🌾 Get synonyms and antonyms of words from Thesaurus.com and other sources in your terminal, with rich output.

Home Page: https://pypi.org/project/synonym-cli/

Python 100.00%
cli command-line datamuse dictionary linguistics python rich synonyms terminal thesaurus wordsearch

syn's Introduction

Hey!

It's Gökçe. Ever since I joined GitHub, I pushed 1357 commits, opened 14 issues, submitted 20 pull requests, received 6507 stars across 70 personal projects, and contributed to 2 public repositories.

Mostly writing in Typescript, Python and Rust. The frameworks that I like to use are Next.js, React, Svelte/Sveltekit, Prisma, Tauri, Plasmo. Fan of terminal UI, enjoy exploring topics like pentesting and reverse engineering in my spare time.

gpg views Medium dev Kaggle

❯  Posts

⁛  Projects

syn's People

Contributors

agmmnn avatar ghostofpokemon avatar rmassidda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

syn's Issues

Thesaurus.com parsing fails due to potential changes on the site

Hello,

I've noticed that synonym-cli is currently unable to parse data from Thesaurus.com, likely due to changes on the site. This results in a failure when trying to get synonyms or antonyms for any word. The error message I'm receiving is:

Expecting value: line 1 column 1 (char 0)

I've already developed a fix for this issue by utilizing BeautifulSoup to parse the necessary JSON data from the site. This solution seems to work well and I will soon open a pull request for your review. This way, users can continue to enjoy this useful tool.

Import Error while Installing

Hey!

Firstly, thanks for the useful script. :)

I tried to install the package but I found two minor errors that resulted in failure.
Firstly, importing the version number from __main__.py causes the import of the external libraries.
Thus, the package installation fails if the external libraries are not already installed (as in my case!).
Secondly, the README file has a different extension than the one reported in setup.py.

I'm preparing a pull request fixing this, hoping it might help!

multi-language support with AlterVista API (and others)

AlterVista's Thesaurus API supports the following languages:
Czech, Danish, English (US), French, German (Germany), German (Switzerland), Greek, Hungarian, Italian, Norwegian, Polish, Portuguese, Romanian, Russian, Slovak, Spanish.

API key is required, registration is also required: https://thesaurus.altervista.org/openapi

example command:
syn -l fr joyeux

lang codes:
en, fr, cs, el, es, da, de, hu, it, no, pl, pt, ro, ru, sk

preview:
WindowsTerminal_1pzPIjn2kS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.