cargo-thesaurust

Crates.iocargo-thesaurust
lib.rscargo-thesaurust
version0.1.2
created_at2025-05-06 13:06:00.627645+00
updated_at2025-05-07 13:25:24.748979+00
descriptionA terminal-based dictionary app.
homepagehttps://moreenh.me/pages/projects/cargo-thesaurust
repositoryhttps://github.com/quietpigeon/cargo-thesaurust
max_upload_size
id1662350
size112,777
Pigeon (quietpigeon)

documentation

README

Table of Contents

thesaurust

A simple dictionary application built within the terminal, written in Rust. Demo

How it works

The data is fetched from the API provided by https://dictionaryapi.dev/. Since words can contain more than one meanings, the user can toggle between different meanings based on the parts of speech the word has.

thesaurust has built-in spellchecking. The inserted word will first be sent to https://api.datamuse.com. It will generate a list of words that has the closest spelling to the original. Of course, if the original is spelled correctly, the word with the highest score will be the same as the original.

Installation

[!NOTE] You need to install Rust before you can proceed.

cargo install cargo-thesaurust --locked
thesaurust

Usage

  • /: Insert the word you would like to look for.
  • Enter: Search.
  • j, k: Select the part of speech and press Enter.
  • l, h: Toggle between multiple definitions.
  • q: Exit the app.

Roadmap

  • Show an example with the definition (if available)
  • Toggle between parts of speech
  • Toggle between definitions with the same part of speech
  • Use a spellchecking API to suggest correct spelling for words
  • Show synonyms
  • Publish crate
  • Loading screens
  • Allow users to select similarly spelled words
Commit count: 169

cargo fmt