# ruby/did_you_mean

The gem that has been saving people from typos since 2014

Repository: https://github.com/ruby/did_you_mean
Canonical: https://ross.abutalabs.com/products/did_you_mean
Language: Ruby
License: MIT
License Family: permissive
Topics: ruby, spellcheck, spelling-correction, spell-check, spelling, spelling-checker, typo, hacktoberfest
Last push: 2026-06-23T05:12:44+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 4595, "days_push": 71, "days_rel": 637, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1881, forks 113 (observed 2026-08-28T04:05:48.626585+00:00)

## What it is
A Ruby gem that enhances error messages by suggesting corrections for misspelled method, variable, class, and key names in NameError, NoMethodError, KeyError, and similar exceptions. It ships bundled with Ruby 2.3+ and also exposes a reusable SpellChecker for programmatic spelling correction.

## Use cases
- suggest correct method names when a NoMethodError occurs
- fix misspelled class or variable names in NameError messages
- suggest similar hash keys on KeyError
- programmatically find closest matches to user input with a spell checker
- disable suggestions when debugging error objects

## When to choose
- you want friendlier Ruby error messages with 'Did you mean?' suggestions
- you need a small spell-correction utility inside a Ruby program
- you are building tooling that surfaces likely intended identifiers

## When to avoid
- you are not working in Ruby
- you need general-purpose natural language spell checking rather than identifier correction
- you need suggestions in production error reporting where overhead must be minimized

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, developer-tools
- domain: developer-tools, programming-languages
- platform: ruby, cross-platform
- tags: spell-check, typos, error-messages, nameerror, debugging

## Member repositories
- ruby/did_you_mean (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:48.626585+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:13:59.068377+00:00, confidence not recorded.
  - readme: https://github.com/ruby/did_you_mean (fetched 2026-08-28T04:05:48.626585+00:00, sha 07e091d11b39)
- Data as of 2026-08-30T08:39:29.467469+00:00.
