A CLI spelling corrector for when you're unsure
Find a file
2026-04-22 19:16:57 -04:00
.github Add workflow to build distribution packages on release 2024-02-06 14:36:39 -05:00
benches perf: ️ reduce runtime about 100ms compare to main branch 2022-04-19 20:02:58 +08:00
docs Update docs, add caching to actions workflow 2022-04-19 14:16:04 -04:00
src Update cargo dependencies and fix breaking changes 2024-02-06 14:11:22 -05:00
tests perf: ️ reduce runtime about 100ms compare to main branch 2022-04-19 20:02:58 +08:00
.gitignore Add man page and shell completion generation 2022-05-12 13:23:22 -04:00
build.rs Remove redundant import 2022-12-26 08:01:16 +06:00
Cargo.lock Bump openssl from 0.10.72 to 0.10.78 2026-04-22 23:14:53 +00:00
Cargo.toml Bump tokio from 1.36.0 to 1.38.2 2025-04-08 02:11:56 +00:00
LICENSE Update docs, add caching to actions workflow 2022-04-19 14:16:04 -04:00

DidYouMean

DidYouMean (or dym) is a command-line spelling corrector written in rust utilizing a simplified version of Damerau-Levenshtein distance. DidYouMean is for those moments when you know what a word sounds like, but you're not quite sure how it's spelled.

Installation

Arch Linux (and derivatives)

DidYouMean is available on the AUR as three different packages:

  • didyoumean: Last stable release, built from source (Thank you orhun!).
  • didyoumean-git: Last git commit, built from source. This is the most up to date, but the least stable.
  • didyoumean-bin: Last stable release, distributed as a binary. This is only available for x86_64 at the moment.

You can install it using any AUR helper. Using paru, the command would be as follows:

paru -S <package choice from above>

Homebrew (macOS)

Homebrew is a package manager for macOS. Currently, I have only packaged an x86_64 binary. The command to install it is as follows:

brew tap hisbaan/tap
brew install didyoumean

NixOS

evanjs very kindly packaged didyoumean for NixOS. The command to install is as follows:

nix-env install -iA nixpkgs.didyoumean

Cargo

Run the following command to build dym from source and install it in your home directory. Ensure that you have $CARGO_HOME/bin/ in your path.

cargo install didyoumean

Developer Installation

The build dependencies for this project are git, rust, rustc, and cargo. First, clone this repository, then run

cargo run -- <args>

where <args> are the command-line arguments you would pass the DidYouMean binary. Note that this is an unoptimized build contianing debug information so it runs much, much slower.