# Introducing Dylint Spellcheck (Rust)

DevFeed: [Introducing Dylint Spellcheck (Rust)](<https://devfeed.tech/articles/introducing-dylint-spellcheck-rust-95041.md>)

Original publisher: [Read original article](<https://code.dblock.org/2026/10/22/introducing-dylint-spellcheck.html>)

Author: Daniel Doubrovkine (dblock@dblock.org)

Published: 2026-10-22T00:00:00Z

Content type: release

Language: en

Sources: [Daniel Doubrovkine](<https://devfeed.tech/sources/daniel-doubrovkine.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [0-1](<https://devfeed.tech/tags/0-1.md>), [added](<https://devfeed.tech/tags/added.md>), [all](<https://devfeed.tech/tags/all.md>), [comment](<https://devfeed.tech/tags/comment.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [english](<https://devfeed.tech/tags/english.md>), [examples](<https://devfeed.tech/tags/examples.md>), [feature](<https://devfeed.tech/tags/feature.md>), [getting-started](<https://devfeed.tech/tags/getting-started.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [idea](<https://devfeed.tech/tags/idea.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [install](<https://devfeed.tech/tags/install.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [metadata](<https://devfeed.tech/tags/metadata.md>), [nightly](<https://devfeed.tech/tags/nightly.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [rust](<https://devfeed.tech/tags/rust.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

dylint-spellcheck adds spelling linting for Rust comments, Rustdoc attributes, Markdown, and plain text. It uses Kotoshu and bundles an American English dictionary. Install Dylint with the specified stable Cargo command, add the library's Git tag to workspace metadata, and run `cargo +stable dylint --all`; Dylint builds the library with its pinned nightly without changing the application's toolchain or adding an application dependency. In excalc-rs, a workspace `dylint.toml` combines bundled English with `.spellcheck.txt` to accept technical vocabulary. The author checked both default and no-default feature configurations, reviewed and committed a sorted, deduplicated vocabulary of 136 case-sensitive entries, then configured CI to fail on warnings. The supplied text ends during the integration account, so it does not establish further results.

## Source excerpt

After adding spelling checks to RuboCop, I wanted the same thing for Rust. Introducing dylint-spellcheck, a Dylint library for checking spelling in Rust comments, Rustdoc attributes, Markdown, and plain text. It uses the Rust implementation of Kotoshu and ships an American English dictionary. The idea is the same as the Ruby version: fix actual typos, accept project-specific vocabulary, and run spelling alongside the other lint checks. Getting Started The examples below use released 0.1.0. Install Rust through rustup, then install Dylint: cargo +stable install cargo-dylint dylint-link --version 6.2.0 --locked Add the library to your project's Cargo.toml: [workspace.metadata.dylint] libraries = [ { git = "https://github.com/dblock/dylint-spellcheck", tag = "v0.1.0" }, ] Dylint libraries are distributed through Git. Dylint downloads and builds this one with its pinned nightly compiler without changing the application's normal toolchain. There is no crate to add to your application's dependencies. Run it: cargo +stable dylint --all Given this Rust comment: // The red brown fox jumsp over the lazy dog. fn main() {} Dylint reports: warning: misspelled word: `jumsp` --> src/main.rs:1:22 | 1 | // The red brown fox jumsp over the lazy dog. | ^^^^^ | = help: did you mean `jump`, `jumps`, `lump`? = note: `#[warn(spellcheck)]` on by default Implementation in excalc-rs I added spell-checking to excalc-rs in PR #4. Technical comments contain perfectly legitimate words that are not in an English dictionary: Kronrod, Mascheroni, MCP, and excalc, for example. I added a workspace-root dylint.toml to combine bundled English with a project vocabulary: [dylint-spellcheck] dictionaries = ["crate:dylint-spellcheck/data/en", ".spellcheck.txt"] The crate: reference selects dictionary resources, not another application dependency. Bundled English is available without downloading a separate dictionary. With .spellcheck.txt absent, I ran the full intended feature scope: cargo +stable dylint -